developing a website using ASP.NET

P

Patrick

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),
 
G

Guadala Harry

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top