hello
I tried:
<asp:CheckBox ID="chkCancel" AutoPostBack="true" OnCheckedChanged="chkCancel_CheckedChanged" onclick="OpenWindow" runat="server" />
protected void OpenWindow(object sender, EventArgs e)
{
string url = "Popup.aspx";
string s = "window.open('" + url + "', 'popup_window', 'width=300,height=100,left=100,top=100,resizable=yes');";
ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
}
protected void chkCancel_CheckedChanged(object sender, EventArgs e)
{
string url = "Popup.aspx";
string s = "window.open('" + url + "', 'popup_window', 'width=300,height=100,left=100,top=100,resizable=yes');";
ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
}
...
Go to the complete details ...