Problem using 'include' with asp page

C

Chris Parry

Good Day,

I am trying to set up a news management system on my server which required
me to include an .asp file in a template from my site.

I have established that for an included .asp page to be displayed in the
browser, it has to be included into an .asp template - i.e. a combination of
an html template and an included asp file won't work - correct?

My problem is - How do I convert my html template to asp? - It still doesn't
work if I simply save it as an asp file in FP2003, therefore I presume there
are some code changes to be made. Can someone tell me what I have to strip
out to make it work?

The page in question is http://www.festrail.co.uk/test1/news.asp

(note that the include code:

----------------
<!--webbot bot="Include"
U-Include="http://www.festrail.co.uk/frnews/miniabstracts.asp"
TAG="BODY" -->
----------------

is not displayed when you 'view source', but it is there!)

Any advice grateful received.

Chris
 
T

Tom Miller

You might want to post this question again in the .client version of the
newsgroup....
----Snip----
Chris Parry said:
Good Day,

I am trying to set up a news management system on my server which required
me to include an .asp file in a template from my site.

I have established that for an included .asp page to be displayed in the
browser, it has to be included into an .asp template - i.e. a combination of
an html template and an included asp file won't work - correct?

My problem is - How do I convert my html template to asp? - It still doesn't
work if I simply save it as an asp file in FP2003, therefore I presume there
are some code changes to be made. Can someone tell me what I have to strip
out to make it work?

The page in question is http://www.festrail.co.uk/test1/news.asp

(note that the include code:

----------------
<!--webbot bot="Include"
U-Include="http://www.festrail.co.uk/frnews/miniabstracts.asp"
TAG="BODY" -->
----------------

is not displayed when you 'view source', but it is there!)

Any advice grateful received.
Chris,
I'm a little hazy but this probably has to do with when each type of code is
processed. Asp code is processed before any html code is processed because
Asp code often dynamically creates the html code that the server wants to
send to the users browser. FP has an "include" component that will include
static html code (like a site-wide page footer) quite nicely. But this
footer is processed by "FrontPage Server Extensions" which maybe run after
the Asp service processes the code. If that is true then the Asp process
will not see the "asp" code because it is being added after the Asp process
has run the page.

Hope this makes sense,
Tom Miller

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top