I have an existing ASP.NET web forms solution (on Sitecore, if it helps) where we're adding some caching, and need it to be safe with postback. We're using the outputcache directive with both pages (i.e. Sitecore layouts) and controls (sublayouts), and VaryByCustom.
In order to programmatically set caching parameters from within controls, we are investigating the use of the BasePartialCachingControl with ControlCachePolicy as detailed here: https://msdn.microsoft.com/en-us/library/system.web.ui.basepartialcachingcontrol(v=vs.100).aspx https://msdn.microsoft.com/en-us/library/system.web.ui.controlcachepolicy(v=vs.100).aspx
However, when the asp:BasePartialCachingControl tag is added to a control as a wrapper, we get the "Unknown server tag 'asp:BasePartialCachingControl'" parser error. Adding an import directive for the class's namespace does not help. How do we resolve this? Thank you.
