![]() |
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 |
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 > |
Re: Caching ..
Hi !
But do i have to pass the httpcontext object to my class whn i create a new object? |
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 |
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.