View Single Post
Old 05-08-2008, 08:30 PM   #5 (permalink)
shir
Junior Member
 
Join Date: 05-08-08
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

shir is liked by many
Code replication on all pages

Hi,

Thanks for your response.

By repeatable code, I meant the HTML code to display the banner, create left menu items, footer.

Instead of replicating the same code on all pages, I was wondering if I can write these just once and then include the banner.html, footer.html, leftmenu.html on all the pages of the site.

However the only way I know this would be possible is to use file includes in ASPX or some other kind of Server Side Includes.

If I need to change the left menus in the future, I could just make the chnage in the leftmenus.html file and that could be automatically reflected on all pages since the leftmenu.html file will be include on all pages.

Any suggestions ?
shir is offline   Reply With Quote