473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Need advice on separating content from look and feel

Joe
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

Nov 19 '05 #1
4 1297
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

"Joe" <Jo*@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
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

Nov 19 '05 #2
> 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
Nov 19 '05 #3
Joe
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

"darrel" wrote:
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

Nov 19 '05 #4
> 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.


You really need to understand Usercontrols, as they're a basic building
block in ASP.net. There are a ton of tutorials on them, though. Google
returns several:

http://www.google.com/search?q=using...t+usercontrols

-Darrel
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philip | last post by:
Hi, I am trying to output certain nodes inside another. I have an xml template with field definitions for a form, and this includes textfields, labels, checkboxes etc plus fieldssets. I defined...
16
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why...
28
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as...
2
by: bj | last post by:
Hi, Yes, this is yet another "switching from tables to divs for layout purposes" post. I have been searching for the past few hours to find what I'm looking for as I hate posting unnecessarily....
12
by: johannblake | last post by:
First off, I am NOT a beginner. I have lots of experience developing professional web sites and am a professional software developer. Unfortunately I've been out of web site development for the...
28
by: Ian Davies | last post by:
Hello I would appreciate some help from someone who has knowledge of working with css, php javascript and how they interact. Ive been working on a task for the last few days and have started to...
10
by: abracad_1999 | last post by:
Apologies for x-posting but seemed no obvious single forum for my query. I am new to content management systems and am considering using a cms to implement a content-based web site with a view...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: Hans Artm | last post by:
Hi, We are developing a site that needs to be localized (english + spanish). The site has a lot of "static" pages with a lot of text, and some dynamic pages. We are unsure how to develop the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.