Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Caching .. (http://www.velocityreviews.com/forums/t111008-caching.html)

parez 10-04-2005 10:08 PM

Caching ..
 
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


Peter Rilling 10-04-2005 10:12 PM

Re: Caching ..
 
Sure. To reference the page objects, you would use HttpContext.Current.

"parez" <psawant@gmail.com> wrote in message
news:1128463732.397267.249630@f14g2000cwb.googlegr oups.com...
> 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
>




parez 10-05-2005 04:07 PM

Re: Caching ..
 
Hi !

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


parez 10-05-2005 04:09 PM

Re: Caching ..
 
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


Brock Allen 10-05-2005 05:12 PM

Re: Caching ..
 
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> 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
>





All times are GMT. The time now is 04:20 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57