Ask a Question related to ASP.NET General, Design and Development.
-
Showjumper #1
If i use the cache class in the global asax, can overrride it for an indiv. page
If i use the cache class in the global asax file in the session sub, can i
override for an individual page that has content that will be changing more
frequently than the rest of the site? Would i use a dependency in this case?
Is there any downside to inseting the cache code in the session start sub?
Showjumper Guest
-
global.asax
Hi all! I've created a simple aspx application and when I run it locally on my pc all works fine. If I move it on the web server I get the... -
global.asax problem
Hi all! I've created a simple aspx application and when I run it locally on my pc all works fine. If I move it on the web server I get the... -
Global Error handling in Applicatio_Error() of Global.asax
Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in... -
What is Global.asax?
It's the class file definition code for the Session and Application events - if you have anything that should be done when a user first connects or... -
Global ASAX error
Sounds like references have been removed from your web.config file. Look in your web.config file under... -
Showjumper #2
Re: If i use the cache class in the global asax, can overrride it for an indiv. page
If i use the HTTPCachePolicy Class in the global asax, does that make all
the pages in the app cached? A couple of pages in the app would need their
content refreshed more often so could i alter the caching in the codebehind
just for those 2 pages? Is there a disadvantage to usiong the the cache
policy class in the global asax? I hopei have explained it better...
"Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
news:uFTacT8PDHA.2768@tk2msftngp13.phx.gbl..."override?"> Are you referring to the Application Cache? What do you mean byin> You can certainly access and use the Application Cache from any ASPX pagei> your web.
>
> HTH,
>
> Kevin Spencer
> Microsoft FrontPage MVP
> Internet Developer
> [url]http://www.takempis.com[/url]
> Big things are made up of
> lots of Little things.
>
> "Showjumper" <showjump@bellsouth.net> wrote in message
> news:OwUbMV1PDHA.452@TK2MSFTNGP11.phx.gbl...> > If i use the cache class in the global asax file in the session sub, cansub?> more> > override for an individual page that has content that will be changing> case?> > frequently than the rest of the site? Would i use a dependency in this> > Is there any downside to inseting the cache code in the session start>> >
> >
>
Showjumper Guest
-
Kevin Spencer #3
Re: If i use the cache class in the global asax, can overrride it for an indiv. page
If you're referring to Response.Cache, which is of the type HTTPCachePolicy,
your code is scoped to the current Response, which means that it is not set
globally no matter where you use it. The Session_OnStart Sub fires only when
the first ASPX page is requested by a user. Therefore, it only affects that
page.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of Little things.
"Showjumper" <shojumper@grkjashdjkf.com> wrote in message
news:%23anpPz8PDHA.1748@TK2MSFTNGP11.phx.gbl...codebehind> If i use the HTTPCachePolicy Class in the global asax, does that make all
> the pages in the app cached? A couple of pages in the app would need their
> content refreshed more often so could i alter the caching in thepage> just for those 2 pages? Is there a disadvantage to usiong the the cache
> policy class in the global asax? I hopei have explained it better...
> "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
> news:uFTacT8PDHA.2768@tk2msftngp13.phx.gbl...> "override?"> > Are you referring to the Application Cache? What do you mean by> > You can certainly access and use the Application Cache from any ASPXcan> in> > your web.
> >
> > HTH,
> >
> > Kevin Spencer
> > Microsoft FrontPage MVP
> > Internet Developer
> > [url]http://www.takempis.com[/url]
> > Big things are made up of
> > lots of Little things.
> >
> > "Showjumper" <showjump@bellsouth.net> wrote in message
> > news:OwUbMV1PDHA.452@TK2MSFTNGP11.phx.gbl...> > > If i use the cache class in the global asax file in the session sub,> i> sub?> > more> > > override for an individual page that has content that will be changing> > case?> > > frequently than the rest of the site? Would i use a dependency in this> > > Is there any downside to inseting the cache code in the session start>> >> > >
> > >
> >
>
Kevin Spencer Guest
-
Showjumper #4
Re: If i use the cache class in the global asax, can overrride it for an indiv. page
Thank you for that. I understand now...
"Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
news:e5lRse9PDHA.2676@TK2MSFTNGP10.phx.gbl...HTTPCachePolicy,> If you're referring to Response.Cache, which is of the typeset> your code is scoped to the current Response, which means that it is notwhen> globally no matter where you use it. The Session_OnStart Sub fires onlythat> the first ASPX page is requested by a user. Therefore, it only affectsall> page.
>
> HTH,
>
> Kevin Spencer
> Microsoft FrontPage MVP
> Internet Developer
> [url]http://www.takempis.com[/url]
> Big things are made up of
> lots of Little things.
>
> "Showjumper" <shojumper@grkjashdjkf.com> wrote in message
> news:%23anpPz8PDHA.1748@TK2MSFTNGP11.phx.gbl...> > If i use the HTTPCachePolicy Class in the global asax, does that maketheir> > the pages in the app cached? A couple of pages in the app would needchanging> codebehind> > content refreshed more often so could i alter the caching in the> page> > just for those 2 pages? Is there a disadvantage to usiong the the cache
> > policy class in the global asax? I hopei have explained it better...
> > "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
> > news:uFTacT8PDHA.2768@tk2msftngp13.phx.gbl...> > "override?"> > > Are you referring to the Application Cache? What do you mean by> > > You can certainly access and use the Application Cache from any ASPX> can> > in> > > your web.
> > >
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft FrontPage MVP
> > > Internet Developer
> > > [url]http://www.takempis.com[/url]
> > > Big things are made up of
> > > lots of Little things.
> > >
> > > "Showjumper" <showjump@bellsouth.net> wrote in message
> > > news:OwUbMV1PDHA.452@TK2MSFTNGP11.phx.gbl...
> > > > If i use the cache class in the global asax file in the session sub,> > i> > > > override for an individual page that has content that will bethis> > > more
> > > > frequently than the rest of the site? Would i use a dependency instart> > > case?
> > > > Is there any downside to inseting the cache code in the session>> > sub?> >> > > >
> > > >
> > >
> > >
> >
>
Showjumper Guest



Reply With Quote

