PDA

View Full Version : Need to include header in ASP.net page...


parallon
07-07-2008, 11:49 PM
Hello all. I have a website written in Classic ASP, and I just installed BlogEngine.net for blogging purposes, but I would like to integrate it into the theme of the rest of the site. A of the website pages are using the following include statement for the header:

<!--#include virtual="/includes/Header.asp" -->

How would I go about including that into the ASP.net application so that the header still works with both the Classic and .net pages?

Thanks in advance,

Parallon

demtron
07-08-2008, 12:32 AM
If the header contains static HTML, then you should consider using master pages (introduced in ASP.Net 2.0). If the ASP include has server-side code in it, then I would avoid doing it. I tried this in a project several years ago in the ASP.Net 1.1 days, prior to master pages, and had many problems. Good luck!

loginitin
07-08-2008, 09:32 AM
to edit the header in blogengine.net u need to edit the theme ( which ever theme u have selected.
go to the themes\[name of your selected theme]\site.master

edit this site.master file to make the changes,
hope it helps :-):thumbsup: