Caching ..

P

parez

Hi all!!

I am workin on caching for a web app..
Most of code of the app is in an separete dll. I want to use asp.net
caching.

Should i my the cache property of the page to the my functions in that
dll and use them? make it byref?

Thanks,
p
 
P

parez

Hi !

But do i have to pass the httpcontext object to my class whn i create
a new object?
 
P

parez

Hi !

But do i have to pass the httpcontext object to my class whn i create
a new object?
I am lookin for the right way (if there is any) for accessing the http
objects like cache ,request etc.. in my class which is a separate dll.

thanks in advance
 
B

Brock Allen

No. You can simply use HttpContext.Current from anywhere in your app, as
long as it's running under ASP.NET. That's the point in it being a static
property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top