Ask a Question related to ASP.NET General, Design and Development.
-
James J. Foster #1
Re: Cache object question
Use HttpContext.Current.Cache.
--
James J. Foster, DotNetCoders
[url]http://www.dotnetcoders.com[/url]
"STom" <stombiztalker@hotmail.com> wrote in message
news:uhI632DYDHA.656@tk2msftngp13.phx.gbl...> I am using the Cache object within some of my user controls to store data
> tables.
>
> I would like to have some sort of a global area to put the data into the
> cache for use, but when I go to use the Cache object in global.asax or any
> other file other than something derived from Page or UserControl, I get an
> error saying that Cache is not declared.
>
> I have imported System.Web.Caching namespace but that doesn't help.
>
> What is the best way to use the cache, and fill it externally of the
> page/control I am working on?
>
> Thanks.
>
> STom
>
>
James J. Foster Guest
-
Client-Side Cache Question
Let's say I have a FLV that "lives" on a server, and I serve it up through, say, Ruby. The Ruby script takes care of obtaining the FLV from the... -
Cache Question
I've read a couple of articles on cache and setting expiration etc. What I can't find the answer to is - if you don't set an expiration for your... -
Using Cache object hanging webserver
Hi, I'm using the Cache object to persist some values between pages. I'm setting the expiration for 2 minutes. I'm actually storing Bitmap streams... -
embed object and no DL to browser cache
i know this can be done, but i just couldn't figure out how. can someone give me a hint or somthing? it's a asp web application, and i need to... -
Need to cache personalization data -- not sure which object to use
Hi Matt, Although this might be considered a matter of preference, I'd advise you to store "per user" information in Session. The Cache object is...



Reply With Quote

