Re: Basic Web Design Quesion
- From: "Jason Coyne" <gaijin42@xxxxxxxxx>
- Date: 13 Jun 2006 08:07:26 -0700
It depends on the version of .net you are running, and what you are
trying to do.
In .net 2005, the best way to do it is probably Master Pages, as the
other poster stated. You define your site look and feel in a master
page, leaving blank areas to be filled in and customized by each
content page.
In earlier versions (and you can still do all these in 2005) there are
some other methods :
1) Create a base class that all your pages inherit from, and add items
to the form collection in the base class to handle your shared look and
feel. You can also Response.Write from the base class
2) Use user controls, or custom server controls. Put shared look and
feel into these controls, and then drop them onto each page. This is
evry simmilar to the effect you got in classic ASP using server side
includes. The downside to this method is that you must manually modify
each page, and if your overall page design layout changes in the
future, you need to go through and retouch each page again.
JJ wrote:
Having done most of the background sql coding I'm now ready to start
designing my asp.net web pages.
A basic question though - is there a way of having 'common' elements on
pages (e.g. a header)?
This used to be done using frames, but I undertand these are now not
advised.
Basically what I want is to have some text/code that is common to all pages,
but that I only need to update in one place?
Does that make sense??
.
- Follow-Ups:
- Re: Basic Web Design Question
- From: JJ
- Re: Basic Web Design Question
- References:
- Basic Web Design Quesion
- From: JJ
- Basic Web Design Quesion
- Prev by Date: Re: Data Access using Enterprise Libraries
- Next by Date: BackgroundWorker and showing a panel.
- Previous by thread: Re: Basic Web Design Quesion
- Next by thread: Re: Basic Web Design Question
- Index(es):
Relevant Pages
|