views:

240

answers:

4

Currently I am designing a new website and I want to plan it properly.

The main page consists of a Top Content (Header including logo etc) The body with the menu on the left and obviously the footer at the end of the page.

In the menu I have 50 pages and I want to change ONLY the body content of it.

It is not worth it to replicate all the pages (even the ASP.NET code).

For sure there is a better way how to do it.

Thanks

+5  A: 

David, what you are looking for is a MasterPage:

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/masterpages/default.aspx

Gordon Bell
A: 

Use page templates (aka master pages in ASP.NET). Better yet, use a MVC framework. My personal favorite is Spring.NET, but there are others...

Marko Dumic
A: 

I'd recommend splitting content from form if you haven't already done so. An example of this is to have your content in one file, and have it reference CSS styles in another file to define how it looks. That way you can change your content at will and not have to redo all of your style.

One good site that illustrates this is CSS Zen Garden.

Brian
+1  A: 

I'm not sure what you are looking because for, you do not mention for example, is the 50 pages almost the same, in other words, only content (letters) change? you can do several things.

I would go, because I do .NET, using MasterPages in ASP.NET , you design the layout with all the graphics just like it was a template and place a "placeholder" in the "body" part that you mention and you only create 50 pages of content but neither one you write anything relative to the "template"

You can create a Web 2.0 felling and place a DIV that you replace calling the content via AJAX

Maybe you go by other type of language and make use of templates

there are "million" ways to do "everything" :) without more, I can't tell you what could be a good idea.

balexandre