E
EMW
In my ASPX page I have the following code behind which is activated when the
user clicks on a linkbutton:
Dim sFeatures As String = Chr(34) +
"DiaglogHeigth:50px;DialogWidth:412px;center:yes;help:no;resizable:no;scroll
:no;status:no;" + Chr(34)
Page.Response.Write("<script language=" + Chr(34) + "Javascript" + Chr(34) +
">")
Page.Response.Write("showModelessDialog(" + Chr(34) + "popupphonedata.aspx"
+ Chr(34) + "," + Chr(34) + Chr(34) + "," + sFeatures + ")")
Page.Response.Write("</script>")
On the popupphonedata.aspx page I have a button that has this code:
Dim msg As String
msg = msg & "<Script Language='JavaScript'>"
msg = msg & "window.close();"
msg = msg & "</Script>"
Page.Response.Write(msg)
When I click on the button, the window is not closed.
I seems almost that it is closed and then re-opened because of the script in
the main page.
How can I remove/de-activate that script after it is executed?
rg,
Eric
user clicks on a linkbutton:
Dim sFeatures As String = Chr(34) +
"DiaglogHeigth:50px;DialogWidth:412px;center:yes;help:no;resizable:no;scroll
:no;status:no;" + Chr(34)
Page.Response.Write("<script language=" + Chr(34) + "Javascript" + Chr(34) +
">")
Page.Response.Write("showModelessDialog(" + Chr(34) + "popupphonedata.aspx"
+ Chr(34) + "," + Chr(34) + Chr(34) + "," + sFeatures + ")")
Page.Response.Write("</script>")
On the popupphonedata.aspx page I have a button that has this code:
Dim msg As String
msg = msg & "<Script Language='JavaScript'>"
msg = msg & "window.close();"
msg = msg & "</Script>"
Page.Response.Write(msg)
When I click on the button, the window is not closed.
I seems almost that it is closed and then re-opened because of the script in
the main page.
How can I remove/de-activate that script after it is executed?
rg,
Eric