|
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 ?
|