ASP.NET / HHTP question

  • Thread starter Thread starter VR
  • Start date Start date
V

VR

Hi, all.

I have a rookie web development question.

I am working on creating a web site, where all pages are
going to have a similar look/feel: same menu on one side,
company logo on the other side, etc. Some of the pages
will be ASP.NET, some will be static HTML.

1. Is there any way to make sure that all the
graphics/HTML data cached on the client's site, when user
is moving from page to page. After all, all the graphics
is the same...

2. Is browser smart enough to do it?
3. Is there any way to programmatically enforce it in ASP?
4. Is there any way to achieve it with static HTML?

Thanks for the help.

VR
 
The graphics will be cached. The pages may or may not be. But you don't want
the ASP.Net HTML output cached in the browser, as it is
dynamically-generated.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
 
Thanks for the reply, Kevin.

I am still not clear on this subject:
But you don't want
the ASP.Net HTML output cached in the browser, as it is
dynamically-generated.

I actually do want to have part of my ASP.Net page cached
on client's side -- the part that is common to all pages.
So, what I am trying to figure out is how to achieve it.

I wanted to make a web control out of the graphics that
are common to all pages and use it in my ASP.Net pages.
So, is it possible to make sure that this control is
cached (because it'll be always the same)?

Thanks for your help.
VR
 
Yes, it is possible as you expect. If any portions of your page remain
static from one request to another, especially if those portions are
somewhat expensive to render (those are generated from a database query,
for example), you may consider using page fragment caching to cahche only
those portions of the page.

-Allen

Disclaimer:
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com

--------------------
| Content-Class: urn:content-classes:message
| From: "VR" <[email protected]>
| Sender: "VR" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: ASP.NET / HHTP question
| Date: Wed, 6 Aug 2003 14:31:30 -0700
| Lines: 69
|
| Thanks for the reply, Kevin.
|
| I am still not clear on this subject:
|
| >But you don't want
| >the ASP.Net HTML output cached in the browser, as it is
| >dynamically-generated.
|
| I actually do want to have part of my ASP.Net page cached
| on client's side -- the part that is common to all pages.
| So, what I am trying to figure out is how to achieve it.
|
| I wanted to make a web control out of the graphics that
| are common to all pages and use it in my ASP.Net pages.
| So, is it possible to make sure that this control is
| cached (because it'll be always the same)?
|
| Thanks for your help.
| VR
|
|
|
|
| >-----Original Message-----
| >The graphics will be cached. The pages may or may not be.
| But you don't want
| >the ASP.Net HTML output cached in the browser, as it is
| >dynamically-generated.
| >
| >--
| >HTH,
| >
| >Kevin Spencer
| >Microsoft MVP
| >..Net Developer
| >http://www.takempis.com
| >Complex things are made up of
| >lots of simple things.
| >
| >| >> Hi, all.
| >>
| >> I have a rookie web development question.
| >>
| >> I am working on creating a web site, where all pages are
| >> going to have a similar look/feel: same menu on one
| side,
| >> company logo on the other side, etc. Some of the pages
| >> will be ASP.NET, some will be static HTML.
| >>
| >> 1. Is there any way to make sure that all the
| >> graphics/HTML data cached on the client's site, when
| user
| >> is moving from page to page. After all, all the graphics
| >> is the same...
| >>
| >> 2. Is browser smart enough to do it?
| >> 3. Is there any way to programmatically enforce it in
| ASP?
| >> 4. Is there any way to achieve it with static HTML?
| >>
| >> Thanks for the help.
| >>
| >> VR
| >
| >
| >.
| >
|
 
Back
Top