S
SteveS
Hello. This is a strange problem which does not make sense to me.
I open a popup page with the following javascript code:
function OpenDenyWindow(changeId) {
retVal=window.showModalDialog('DenialEmailForm.aspx?id=1234'',
'dialogWidth:650px; dialogHeight:700px; resizable:no;');
//alert("Return val = " + retVal)
}
The screen opens fine. However, I can't get it to close after I the user
submits the form. I run this code in my click event:
Response.Write("<script language='javascript'>window.close();</script>")
OR
Page.RegisterStartupScript("AutoClose", "<script language
=""javascript"">window.close();</script" & ">")
Both of these statements do not work.
The problem gets more interesting. If I don't try to close the form, then a
duplicate popup form appears. Now, I have 2 popup forms!
Make sense?
This has me bewildered! Any ideas what is going on?
Thank you for your help!!
SteveS
I open a popup page with the following javascript code:
function OpenDenyWindow(changeId) {
retVal=window.showModalDialog('DenialEmailForm.aspx?id=1234'',
'dialogWidth:650px; dialogHeight:700px; resizable:no;');
//alert("Return val = " + retVal)
}
The screen opens fine. However, I can't get it to close after I the user
submits the form. I run this code in my click event:
Response.Write("<script language='javascript'>window.close();</script>")
OR
Page.RegisterStartupScript("AutoClose", "<script language
=""javascript"">window.close();</script" & ">")
Both of these statements do not work.
The problem gets more interesting. If I don't try to close the form, then a
duplicate popup form appears. Now, I have 2 popup forms!
Make sense?
This has me bewildered! Any ideas what is going on?
Thank you for your help!!
SteveS