Here's a tip if you need to do an ASP.NET postback in a popup window. I was using the JavaScript showModalDialog function to launch an ASP.NET page in a popup window. Which worked great, until I clicked on a button that posted back. As soon as I clicked on button that posted back, it opened a new window. Not exactly what I expected.
So after a little searching on the web, I found a simple solution. You need to include this:
<base target="_self">
in the <head> section of the page. As soon as I did that, it posted back to the popup window.
ASP.NET postback in popup window
Subscribe to:
Post Comments (Atom)
0 comments: (+add yours?)
Post a Comment