How can I bring a value to SharePoint Dialog to bind data. I call the dialog like this
<input type="button" value="<%#((DataRowView)Container.DataItem)["Id"] %>" onclick="javascript:Open()" />
The script
<script type="text/javascript">
//User Defined Function to Open Dialog Framework
function Open() {
var strPageURL = '<%= ResolveClientUrl("~/View.aspx") %>';
OpenCustomDialogWithRefresh(strPageURL, 650, 400, "Add Document Type");
return true;
}
</script>
JS
function OpenCustomDialogWithRefresh(dialogUrl, dialogWidth, dialogHeight, dialogTitle, dialogAllowMaximize, dialogShowClose) {
var options = {
url: dialogUrl,
allowMaximize: dialogAllowMaximize,
showClose: dialogShowClose,
width: dialogWidth,
height: dialogHeight,
title: dialogTitle,
dialogReturnValueCallback: Function.createDelegate(null, CloseCallback4)
};
SP.UI.ModalDialog.showModalDialog(options);}
I don't know how to bring the Id value to the View.aspx.