Hello,
can I have the User Controls cached by each user? I have an dinamic menu
that's is built for each user, and the code for its filling is executed every
postback, so I'd like to put it in cache, but each user must have his/her own
User Control cached.
Is it possible?
Thanks
Ben Strackany - 19 Nov 2004 23:15 GMT
Sure. You could assign a unique value to each user & ensure it's in the
querystring, cache the user control to varybyparam, then your user controls
would get cached per user.
You can also use outputcache & varybycustom & write your own getvarybycustom
function to vary by user (IP? unique ID in cookie? something
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/c
pconOutputCache.asp).
You could also cache data/etc for the user in session, & just rebuild the
control from that data each time. You didn't say where the performance issue
was, so session storage may not be appropriate.

Signature
Ben Strackany
www.developmentnow.com
<a href="http://www.developmentnow.com">dn</a>
> Hello,
>
[quoted text clipped - 6 lines]
>
> Thanks