Web Page Header and Menu

  • Thread starter Thread starter poifull
  • Start date Start date
P

poifull

Hi everyone,

I would like to develop a header and HTML menu system for most of the web
pages on my web site. What is the best solution for this scenerio? (HTML
Control, Server Control...)

Thanks for your response
 
Paul Wilson's ASP.NET MasterPages does not answer the question. The OP wants
to know which type of control to use in the top-most section of a page; a
user control, a web control or a server control?

Me? Right now I have user controls which are text snippets of HTML and some
HTML may be marked runat="server" to enable that element to be used as a web
control.

The downside to user controls is they can be thought of as text snippets of
declarative HTML and as such must be copied and pasted into each page in the
project. User controls are easiest and most efficient to use in early design
phase and prototypes as they have designer support in application such as
FrontPage and Dreamweaver where they can be rapidaly designed and
re-designed without mangling or deletion of HTML source the way Visual
Studio.NET designer does.

Now a final word about Master Pages would not be complete without giving
Paul Wilson his due respect but acknowledging that his ASP.NET 1.1 solution
has been deprecated by the presence of ASP.NET 2.0 Master Pages that are now
part of the .NET Framework.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
The downside to user controls is they can be thought of as text
snippets of
declarative HTML and as such must be copied and pasted into each page
in the
project. <<

You can place the user controls into your base page. The only caveat
might be that you probably will need a standard format (perhaps using a
table) for each page so that the user controls are placed into the
proper positions on the page.

Bill E.
 
Paul Wilson's ASP.NET MasterPages does not answer the question. The OP
wants to know which type of control to use in the top-most section of
a page; a user control, a web control or a server control?

Yes it does - you can create a content region for the header and place
whatever you like in there - be it literal text, a user control, etc.

When you're using masterpages, what control you put in there is of minor
importance.
 
Back
Top