S
Stan B
I create a popup window by calling window.showModalDialog
Popup window has Ok button with this code attached:
===
string Script = "<script language=JavaScript>" +
"{" +
"window.close();" +
"}" +
"</script>";
if (!ClientScript.IsClientScriptBlockRegistered("CloseScript"))
ClientScript.RegisterClientScriptBlock (Page.GetType(),
"CloseScript", Script);
===
When Ok button is clilcked, the window is flickering but does not close.
1. If window.showModalDialog is replaced with window.open, everything works
fine.
2. Similar code worked fine on 1.1 framework
3. There is a workaround to set window.opener to some value. I tried that -
didn't work
Thanks,
-Stan
Popup window has Ok button with this code attached:
===
string Script = "<script language=JavaScript>" +
"{" +
"window.close();" +
"}" +
"</script>";
if (!ClientScript.IsClientScriptBlockRegistered("CloseScript"))
ClientScript.RegisterClientScriptBlock (Page.GetType(),
"CloseScript", Script);
===
When Ok button is clilcked, the window is flickering but does not close.
1. If window.showModalDialog is replaced with window.open, everything works
fine.
2. Similar code worked fine on 1.1 framework
3. There is a workaround to set window.opener to some value. I tried that -
didn't work
Thanks,
-Stan