This topic is locked

Header & Footer

12/28/2009 5:43:50 AM
ASPRunnerPro General questions
P
Philip author

Hello,
I'm trying to work with the header & footer in Visual Editor but I'm dumb I guess ... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=13437&image=1&table=forumtopics' class='bbc_emoticon' alt=':unsure:' />
Simple question: where must reside a page (or picture) that I want to put on the header page?

My goal is not to place manualy header.asp to the include folder. I want ASPRunner to reproduce header every time I build the project after changes.
Regards and a Happy New Year,

Philip

J
Jane 12/28/2009

Philip,
add your images to the generated include directory.

Then you can add it on your header using this code:

<img src="image.jpg">
A
artistscope 1/14/2010

I am using the ASP verion... does the include header need to reside in the include folder?
I would like to use a header and footer from below the asprunner folder, for example my asprunner pages are at /export/ and the header/footer is at /
I have tried using...
if fs.FileExists(Server.MapPath("..\inc_export_header.asp")) then Server.Execute("..\inc_export_header.asp")
But nothing shows.
What are the limitations?

J
Jane 1/14/2010

Yes. Also I recommend you to add your code to the header on the Visual Editor tab directly.

D
dbex 1/20/2010



I am using the ASP verion... does the include header need to reside in the include folder?
I would like to use a header and footer from below the asprunner folder, for example my asprunner pages are at /export/ and the header/footer is at /
I have tried using...
if fs.FileExists(Server.MapPath("..\inc_export_header.asp")) then Server.Execute("..\inc_export_header.asp")
But nothing shows.
What are the limitations?


I had a similar prob (in PHP though) and got around it by placing the header file in the generated include folder as recommended but then including my file within that files code so
<?php

include("../path_to/my_custom/header.php");

?>
It works for me if maybe a bit convoluted.
Annalise

A
artistscope 1/20/2010

In the end I did away with the server.include line and used direct includes because the header and side menus are employing database routines before the asp.runner pge loads.
Cheers.