I have a page that is opening another page using the showmodaldialog.
In the page being shown there are two asp buttons. When the code
finishes in the click event for either button I want to close the
modal window.
So on the click event of both buttons I put in:
me.registerstartupscript("<script
language='javascript'>window.close();</script>").
The problem is that for some reason when the asp buttons are clicked
the application instead of posting back to the same window opens an
entirely different window. The javascript runs fine and closes the
third window but I can't figure out what is making .net open the third
window.
I saw one posting to this news group where the programmer had the same
issue but it was never resolved. Any help would be greatly
appreciated.
Thanks!