I have a page1.aspx:
<%@ Register src="uc1.ascx" tagname="UcHead" tagprefix="uc1" %>
and uc1.ascx using the OutputCache:
<%@ OutputCache Duration="18000" VaryByParam="*" %>
How can I click a button in another page2.aspx to remove OutputCache for uc1.ascx or page1.aspx?
When the OutputCache is in page1.aspx, I can use the following code to remove the OutputCache:
string url = "/page1.aspx";
HttpResponse.RemoveOutputCacheItem(url);
But it does not work when the OutputCache is in uc1.ascx.