G
Guest
Hi All,
I have a question about closing a dialog box.
The thing is: I have two ASP.NET pages. From one page, I open another page
as window.showModalDialog. THere is a button on the second page. On the click
event of the button on second page, I put code "Response.Write("<script
language='javascript'> { self.close();}</script>")" or
"Response.Write("<script language='javascript'> {
window.close();}</script>")". But it doesn't work. WHen I click the button,
the page was not closed.
Any idea?
Thanks
william
I have a question about closing a dialog box.
The thing is: I have two ASP.NET pages. From one page, I open another page
as window.showModalDialog. THere is a button on the second page. On the click
event of the button on second page, I put code "Response.Write("<script
language='javascript'> { self.close();}</script>")" or
"Response.Write("<script language='javascript'> {
window.close();}</script>")". But it doesn't work. WHen I click the button,
the page was not closed.
Any idea?
Thanks
william