darylbewise
Programmer
Hello All,
I am adding output cache to a few usercontrols within my website that have quite a few database calls.
I have added the following into the uc:
All works fine with the caching, except when I come to click a button that will sort the details within the user control by a different variable.
Is there any way of implementing the output cache on the standard data (that everyone will see when they visit the page), but remove the output cache once the user decides to sort by a different variable?
Cheers
I am adding output cache to a few usercontrols within my website that have quite a few database calls.
I have added the following into the uc:
Code:
<%@ OutputCache Duration="100000" VaryByParam="none"%>
All works fine with the caching, except when I come to click a button that will sort the details within the user control by a different variable.
Is there any way of implementing the output cache on the standard data (that everyone will see when they visit the page), but remove the output cache once the user decides to sort by a different variable?
Cheers