By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

Output Cache Per User?

P: n/a
When users log into my ASP.NET Web app, they get a dynamically constructed
menu that includes items per the user's security access level. This menu
exists within a user control that is included on many aspx pages throughout
the app.

The output caching options I've seen in ASP.NET don't differentiate between
*users*. VaryByParam is not relevant to users. I'm hoping I've simply missed
something and it is really possible. If it is possible, can someone point me
to an article that explains how to do it? Specifically, I want to output
cache a user control per user.

Thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

you should use VaryByCustom and override GetVaryByCustomString in global
class (asax file).

http://www.builderau.com.au/architec...9129184,00.htm

or

http://dotnetjunkies.com/WebLog/darr...04/05/04/12724.
aspx

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.