Source:
<asp:Button ID="btngroup" runat="server"
OnClientClick="window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;" />
Javascript:
function popup()
{
window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;
}
Codebehind:
ClientScript.RegisterClientScriptBlock(GetType(), "myScript", "<script>window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;</script>");
Pass values:
Page.ClientScript.RegisterClientScriptBlock(GetType(), "myScript", "<script>window.opener.document.getElementById('<%= TextBox1.ClientID %>').value = '" Ur Parameter value "';window.close();</script>");
<asp:Button ID="btngroup" runat="server"
OnClientClick="window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;" />
Javascript:
function popup()
{
window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;
}
Codebehind:
ClientScript.RegisterClientScriptBlock(GetType(), "myScript", "<script>window.open ('search.aspx', 'popupwindow','height=400, width=600,top=200,left=200 status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');return false;</script>");
Pass values:
Page.ClientScript.RegisterClientScriptBlock(GetType(), "myScript", "<script>window.opener.document.getElementById('<%= TextBox1.ClientID %>').value = '" Ur Parameter value "';window.close();</script>");
No comments:
Post a Comment