MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

Modal Dialog Window Caching Problem

Bilal Haidar [MVP]

Syndication

All Links

Blogs I Read

My Articles

JavaScript & CSS

Date & Time

SQL Server 2000/2005

Articles I Read

ASP.NET Free Controls

MVFP (Most Valuable Forum Posts)

Hello:

Suppose you open a Modal Dialog window inside your ASP.NET page. In that dialog window, you have a GridView, DataGrid, or whatever control. Do some changes on that control, you will see that the data has changed right?

Ok, then close the dialog window, then open it again from the ASP.NET Page, you will see the old data and not the data you changed last time, right?

Ok, this is because the data has been cached by the Modal Dialog. It seems that this is how Modal Dialog Windows are built to cache.

To overcome this, you would need to add the following in the top of the ASP.NET page that is being opened with the Modal Dialog:

<%@ OutputCache Location="None" VaryByParam="None" %>

Hope that helps,

Regards

 


Posted Aug 07 2005, 12:34 AM by simple
Filed under:

Comments

simple wrote re: Modal Dialog Window Caching Problem
on 09-08-2005 12:01
Hi
Thanks for your info. i solved my problem bcoz of this. i suffered more than 2 weeks and i got this link now and solved.

Thanks & Regards
Swami
simple wrote re: Modal Dialog Window Caching Problem
on 09-08-2005 12:05
Hello:
I faced that in one night while working, I solved it right away :D,

I am glad you have solved your problem and I was of help to you.

Regards

Add a Comment

(required)  
(optional)
(required)  
Remember Me?


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems