Problem with Cashing

  • Thread starter Thread starter vaidas gudas
  • Start date Start date
V

vaidas gudas

I am cashing tge asp.net page for duration=600 and varybyparam="ID". In this
page is the table, which binding the data from the sqlserver. when data is
modifikated using this page he showing the old page with old data.
 
Hi,

the cached output varies based on the parameter ID. So if you get results A
when parameter is say '1', you'll get that results A (means the cached
output) as long as the cached output expires (for the duration) because you
have declared so. In ASP.NET v1 there isn't straight way to poll changes in
data source and expire the cached content (ASP.NET v2 has), though there are
other solutions.

See HttpcachePolicy.AddValidationCallback method:
http://msdn.microsoft.com/library/d...achePolicyClassAddValidationCallbackTopic.asp
 
Back
Top