Need advice on separating content from look and feel

G

Guest

Hi,

I am thinking about designing a website using HTML/ASP.NET. I am expecting
that the website will have about 50-100 pages. I am planning on using SSI to
separate the sections of the pages such as header and footer. I will have
navigational menus placed on the page horizontally and vertically. I was
wondering if anyone has any suggestions as how to code menus so that
adding/deleting a menu item won’t mean changing each and every page of the
site. Ideally I would like to keep the menus in one file and so that if I
ever have to change anything, I will make changes to one file. Let me know f
you know of any articles also.

Thanks in advance,

Joe
 
J

John Timney \(ASP.NET MVP\)

Dont use SSI, read up on User Controls instead - and code it one as a menu
tor ead from an xml file which can be cached using fragment caching.

Also, you could look up the concept of master pages to control your look and
feel.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
D

darrel

I was
wondering if anyone has any suggestions as how to code menus so that
adding/deleting a menu item won't mean changing each and every page of the
site.

This, along with SSIs are usually reserved for static web sites. In your
case, you're using ASP.net, so you can build all sorts of logic to
dynamically display the menu on each page.

For your menu, you'd probably want to make it a usercontrol. Then, you'd
want to pass the usercontrol some sort of property...probably the page you
are currently on.

Then, you'd have the control render out each menu item. For the item that
matches the page you are on, you'd have it render in a different style.

This way, if you need to modify your menu, you just need to modify this one
usercontrol file.

-Darrel
 
G

Guest

Being new to asp.net world, all your recomendations seems complex and hard to
implement. Are there any articles or tutorials that will show me how to do
it. Or are there any simplemethods such as SSI.

Joe
 

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

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top