I need to develop a website bearing the following in mind,
- the site will have to be dymanic (i.e. the layout can change from time to
time),
- its a church website
My initial intention was to go with frames, but I've learnt that thats just
not the way to go...
reasons for considering frames,
- the menus and header could be maintained in a single frame (static
content)
- the other pages could be loaded into another frame (when user wants to
navigate),,
- faster in downloading - only the pages get downloaded (the menus and stuff
are in the other frames hence they don't get downloaded)
not going for frames,
- this is not the ASP.NET way
- not all browsers support frames
- if for instance the body of a page loaded into the frame is
"ContactUs.aspx", and if the user tries to google and finds this page
, then if the user navigates to this ContactUs.ASPX, then the frameset will
not load (menus, headers etc are all missing)
WHAT DO I NEED?
===============
I basically need to use ASP.NET - and want to use a template for each page.
Thus making changes to the base template will affect all other pages (with
little effort),
Guadala Harry - 23 Oct 2005 05:48 GMT
ASP.NET has something called "User Controls" which is basically a "page
section" that can appear on multiple pages. A User Control can contain both
static HTML and dynamic content (with server-side logic behind it). You
could put your menu in one user control; the header in another, and both
user controls on each page. At runtime, ASP.NET merges the HTML of each user
control onto the final rendered page before sending the page down to the
browser. This would give you some of the benefits of "code reuse" that you
like about frames - but without incurring some of the limitations of frames
that you correctly observed.
-HTH
>I need to develop a website bearing the following in mind,
> - the site will have to be dymanic (i.e. the layout can change from time
[quoted text clipped - 25 lines]
> Thus making changes to the base template will affect all other pages (with
> little effort),
Patrick - 23 Oct 2005 06:53 GMT
I found the best way, (or i think so),
http://www.devx.com/dotnet/Article/18011/0/page/1
>I need to develop a website bearing the following in mind,
> - the site will have to be dymanic (i.e. the layout can change from time
[quoted text clipped - 25 lines]
> Thus making changes to the base template will affect all other pages (with
> little effort),
Jon Paal - 23 Oct 2005 18:29 GMT
recommended coding style examples can be found in starter kits at www.asp.net
------------------------------------------------------------------------------------
I would much rather chew on tinfoil than code in C#.