Hello Billy,
emm, not quite understand what do u want to get.
Cache the user name or the value of the control?!
To have the user-specific cache your can use the Session, or put the value
to the Cache class with the user name key and hashed by username (to make
it a bit secure in case of accessing this value from other user)
---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
BZHere is a user control on the page, how do I cache it by user?
BZCurrently I think we could put a server control for example
BZID:textusername in the asp.net page whose value is username, so we
BZcan utilize Output cache with varybycontrol to control the cache.
BZ>
BZQueation:
BZIf this is right direction, does this control ID:textusername need
BZto be in
BZthe user control or just in the asp.net page?
BZHow do I check if it has been cached successfully?
BZ>
BZIf there are 2000 users, how do I check the memory the cache used?
BZ>
BZThanks,
BZ-Billy