Forum Moderators: open

Message Too Old, No Replies

Can't in include ASP in Frontpage 2003!

         

MilleB

6:07 pm on Aug 11, 2005 (gmt 0)

10+ Year Member



Trying to use insert¦web component¦pages with FP2003, as described in either place for including asp pages. I want to use the webbot which I think fine for me.

FP wouldn't let me do it, getting the message

"You can not include ASP pages ... please include HTML"

Any help in the forum?

Corey Bryant

1:18 pm on Aug 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to type it in yourself basically. The webbot only works for HTML pages since you cannot really include another files into an HTML page (unless the server is configured properly). And FP would not know that.
-Corey

MilleB

1:38 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



Did that too ... but then I get an ugly text like:[/thisinclude/example], which is ruining the WYSIWIG. :-)
I have some other webbot includes for which there is only a nice "!". Why?

Corey Bryant

1:50 pm on Aug 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To include an ASP file, the code is something like:
<!--#INCLUDE FILE="includes/header.asp" -->

-Corey

MilleB

2:28 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



Actually I'm trying to implement the example given by pageonresults @
[webmasterworld.com ]

Because I don't want a server side include, as recommended by pageonresults on the above thread.
So I use the following include


<!--webbot bot="include" u-include="http://www.example.com/nav/top.asp" tag="body" -->

Ain't working on asp files, perfect on html files though?
I just get the url in the brakets ...

Corey Bryant

2:38 pm on Aug 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you are doing this, the file you are including is example.asp? Do you have a <head> and <body> in there? You need that for it to work correctly.

Normally, in regular ASP includes, the <head> and <body> are not needed since the code is parsed on the server.
-Corey

MilleB

8:28 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



Thx, got it to start working in FrontPage ie wysiwig is working BUT two problems still
1. on server I get the following message
[Composant FrontPage Insertion de page]

2. can not put an absolute link, it reverts to previous behaviour with url text displayed

Corey Bryant

9:06 pm on Aug 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try to get your hosting company to reinstall the frontpage extensions

-Corey

MilleB

9:56 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



OK, will do... will take a couple weeks the guy is off.

Why are the html includes working & not asp? I looked at the file on the server with html the code is expanded in the file, asp not.