This topic is locked

Adding header & footer tags

8/1/2006 1:37:36 PM
ASPRunnerPro General questions
S
scott73072 author

Has anyone had any luck editing pages after they have been built? I am trying to add header and footer tags so the pages fit the rest of the site, but all I encouter are endless errors. Would love to see some examples of how others have worked this product into their site. Thanks.

J
Jane 8/2/2006

Scott,
header.asp and footer.asp files are used to display header and footer on all generated PHP pages. You can create them using any text editor and put your custom html, JavaScript or ASP code to these files.

If you like these header and footer will be added to all generated asp projects automatically you need to put these files to C:\Program Files\ASPRunnerPro\source\include directory.
Also you can put header.asp and footer.asp files to include folder in output directory.

You don't need to rebuild project after this.
Here are some examples:

for header.asp

<p align="center"><img src="include/logo.jpg" border="0"></p>

<table width="300" border="1" bordercolor=#2237cbb align="center" cellpadding="5">

<tr>

<td>



for footer.asp

</td>

</tr>

</table>

<p align="center">

<b><font color=#237cbb> © 1999 - 2005 Your company. All rights reserved.</font></b></p>

ngomong 10/20/2006

Thanks for your advice.
How do I do this...
I want to create a default header with my company logo, which automatically becomes part of the project.
But then, for each project, I want to add some text below the logo. Each project will have different text. Right now, if I edit the header.asp file which goes into the output directory, it gets overwritten every time I rebuild.
Does that make sense?
Thanks,

clay.

Sergey Kornilov admin 10/23/2006

I guess you also have a file named header.asp in C:\Program files\ASPRunnerPro\source\include directory.

I recommend you to delete this file.

ngomong 10/24/2006

Yes, I do, and that should be the starting point for the header template. So, I create a new project, and it uses that header.asp file. (Our company logo is in the header). But then, in the project, I want to customize the header specifically for that project (to include the project name), so that every time I rebuild it shows the logo and the project name.

I guess you also have a file named header.asp in C:\Program files\ASPRunnerPro\source\include directory.

I recommend you to delete this file.