V
Vijay Kerji
Hi:
I have a child window which is opened by parent using ShowModalDialog.
Child has a button called Add and its click handler at server tries to
close the window as below.
private void Button_Add_Click(object sender, System.EventArgs e)
{
string strscript = "<script
language=javascript>window.top.close();</script>";
if (!Page.IsStartupScriptRegistered("clientScript"))
Page.RegisterStartupScript("clientScript",
strscript);
}
But unfortunately, child window does not get closed. Any guess is very
much appreciated.
Thanks in Advance,
Vijay K Kerji
I have a child window which is opened by parent using ShowModalDialog.
Child has a button called Add and its click handler at server tries to
close the window as below.
private void Button_Add_Click(object sender, System.EventArgs e)
{
string strscript = "<script
language=javascript>window.top.close();</script>";
if (!Page.IsStartupScriptRegistered("clientScript"))
Page.RegisterStartupScript("clientScript",
strscript);
}
But unfortunately, child window does not get closed. Any guess is very
much appreciated.
Thanks in Advance,
Vijay K Kerji