showModalDialog and postbacks in ASP.NET
I learned something new today that my coworker Dennis spent several agonizing hours trying to solve. He was using window.showModalDialog to open a modal window on the client from Javascript, but whenever that page posted back, it would spawn off a new window. (A normal window.open worked fine, this was only a problem for modal windows). Some searching turned up several people with the same problem, and the solution once found (here), was quite simple: just include this line in the < HEAD > html of the modal window:
<base target=_self>
Hope this saves someone else some time!
Marcie