Turn off page-level caching in a user control
问题 I have a page with the following caching defined: <%@ OutputCache Duration="60" VaryByParam="None" %> I have a user control inside that page that i don't want cached. How can I turn it off just for that control? 回答1: Option One Use the Substitution control or API on your page. this enables you to cache everything on your page except the part contained within the substitution control. http://msdn.microsoft.com/en-us/library/ms227429.aspx One nice way to use this is to implement your control as