The blogosphere saves my ass again
I'm writing a couple of asp.net pages. Nothing unusual there.
The problem is that one of these pages is shown via a 'window.showModalDialog()' in some javascript on the first.
In the dialog, when you submit a postback, it opens the result in a new window. This is annoying, nasy, incorrect, and wrong wrong wrong!!! (In this case, anyway). And i couldn't work out how to stop it from happening.
Then i found this post on this blog (I can't name the guy who writes it, because i can't find his name anywhere :)
It gives two answers to the proplem, and a third is given in the comments. For me, setting a <base target=”_self”> on the page did the trick nicely.
<Cheesy Voice>Thanks Blogosphere!</Cheesy Voice>
Listening to: bring me to life - evanescence - (3:57)