Hello,

I have been working on a site recently that relies heavily on user controls.

With the site nearly complete we are now looking to improve efficiency with some caching.

I have been looking at a number of options. In some cases a simple varybyparam fits the bill. However some user controls don't suit this model for whatever reason.

This sent me down the line of PartialCaching where I vary the cache by property.

This seems to work a treat if I declare the property in my markup, ie <uc7:JustPublished ID="JustPublished1" runat="server" categoryid="101" />

however if the control sits on a page that has a number of variants and I set the property in the codebehind eg categoryid = 101 it does not vary the cache.

Anyone encounter anything similar or have any good suggestions?

Thanks for reading

BB