J
Janaka
Hi All,
I'm having a problem with Page Output caching on a page that contains a
DataGrid. Basically the page pulls up some data for sales information from
the DB. Some of this has to be calculated on the fly when the request is
made, and so I thought it would be ideal to cache the page for a set amount
of time. I've placed the following at the top of my page: <%@ OutputCache
Duration="160" VaryByParam="None" %>
Now the problem is that this works fine if I am just looking at the
DataGrid, however it also needs to be editable. Once I click on the edit
link on the relevant row the page goes into the EditItemTemplate view and
stay's cached like this for the set period of time! Nothing can be done on
the page until the cache expires.
Is there a way of setting the caching policy to cache only when the DataGrid
is not in edit mode?
I'm having a problem with Page Output caching on a page that contains a
DataGrid. Basically the page pulls up some data for sales information from
the DB. Some of this has to be calculated on the fly when the request is
made, and so I thought it would be ideal to cache the page for a set amount
of time. I've placed the following at the top of my page: <%@ OutputCache
Duration="160" VaryByParam="None" %>
Now the problem is that this works fine if I am just looking at the
DataGrid, however it also needs to be editable. Once I click on the edit
link on the relevant row the page goes into the EditItemTemplate view and
stay's cached like this for the set period of time! Nothing can be done on
the page until the cache expires.
Is there a way of setting the caching policy to cache only when the DataGrid
is not in edit mode?