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

Cache in user control

P: n/a
If I use Cache.Insert method in my user control, I get error message.
If I use HttpContext.Current.Cache.Insert then I don't get error message,
but the cache is always nothing.

How can I use cache in my user control?

Thank you for your answer,

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


P: n/a
The syntax I always use everywhere is Cache["mykey"] = myObject;
I don't bother with the methods on the Cache object. I just use the indexed
property.

Jeffrey Palermo

"simon" <si*********@stud-moderna.si> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If I use Cache.Insert method in my user control, I get error message.
If I use HttpContext.Current.Cache.Insert then I don't get error message,
but the cache is always nothing.

How can I use cache in my user control?

Thank you for your answer,

Simon

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.