Related Posts Plugin for WordPress, Blogger...

showModalDialog Fires Page_Load On First Click Only


If you have a window.showModalDialog called by your .Net application, you might have the problem that the Page_Load event only fires one time.

After doing my research, I found out that if the Page_Load event doesn't fire probably the page is being loaded using the cache and no roundtrips occurred.

To fix this, you need to add a unique query string in your URL of the window.showModalDialog to make the browser not to load in the cache.

Sample code with the unique query string:



If you like this post, buy me a cup of coffee.

Share This Post Digg This Del.icio.us Furl Reddit Fav This With Technorati Yahoo MyWeb Stumble This

0 comments


Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting