Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : Uniformal look for all pages


Sasha
2/29/2004 10:15:32 PM
Hi,

What is the best way to enforce uniformal look on all of my aspx web pages?
I know it is done through Master pages in ASP.NET 2.0, but what can I do in
ASP.NET 1.1? Should I creat just one base page and just inherit all of my
pages from it?

Thank you for your help,
Sasha

Brian W
2/29/2004 10:51:19 PM
Check out one of Paul Wilson's article on Page Templates.
http://www.wilsondotnet.com/Default.aspx

HTH
Brian W


[quoted text, click to view]

Joerg Jooss
3/6/2004 3:58:14 PM
[quoted text, click to view]

There are actually quite a few Page Template "patterns" published for
ASP.NET. Check out site like www.asp.net or www.apsalliance.com for more
information on this topic.

Cheers,

--
Joerg Jooss
joerg.jooss@gmx.net
Brian W
3/8/2004 7:41:16 AM
[quoted text, click to view]

Could you be a little more specific, please? Even at those places the only
references I found where to Paul Wilson's work.

Thanks
Brian W


Brian W
3/11/2004 8:45:55 AM
[quoted text, click to view]

My point exactly





[quoted text, click to view]

Simon Storr
3/11/2004 1:26:33 PM
http://authors.aspalliance.com/PaulWilson/Articles/?id=1 contains some
useful info, having said that I've found usercontrols more hassle than
they're worth. IMHO its better to use webcontrols if possible - they're more
work to code but a lot more flexible + you can see them at design time. I
build whole common page sections into webcontrols making the aspx pages very
small.

Also, rather than have my pages inherit from System.Web.UI.Page, I have an
intermediary 'BasePage' class and inherit my pages from that. Experiments
with inheriting actual aspx pages really screwed the designer as any
designer components in the base page get added AGAIN into the inherited page
:o( If you add controls dynamically (which again is less hassle) then its
fine and saves a lot of duplicate coding!

As for actual page layouts, cascading style sheets (CSS) are the way to go.

HTH

Simon


[quoted text, click to view]

AddThis Social Bookmark Button