Recent Posts

Tags

Community

Email Notifications

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)

Archives

Modal Dialog Window Caching Problem

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 | with 2 comment(s)
Filed under:

Comments

simple said:

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
# September 8, 2005 12:01 PM

simple said:

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
# September 8, 2005 12:05 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)