|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
<!--include files - help
I have one file called services.asp and i've included a footer on this page as PageBot.asp they are both in the root of the site but it doesn't include the contents of PageBot.asp if I view source on services.asp, it has this at the bottom of the page <!--#include virtual="pageBot.asp"--> when in fact it should include the footer html I've tried using 'file' and 'virtual' on the includes bit but it still doesn't work it works locally but not on the server, I think the live environment is running apache to view it have a look here http://www.ais2000.co.uk/test.asp footer can be seen on this page http://www.ais2000.co.uk/AISpreview.jpg Is it being including dynamically or statically?
Show quote "Mark" <mr.davies@SPAMMMM-pleaseNoneVirgin.net> wrote in message news:422cd489$0$12848$cc9e4d1f@news.dial.pipex.com... > > Im trying to use the "includes" on an asp file > I have one file called services.asp and i've included a footer on this page > as > PageBot.asp > > they are both in the root of the site but it doesn't include the contents of > PageBot.asp > > if I view source on services.asp, it has this at the bottom of the page > <!--#include virtual="pageBot.asp"--> > when in fact it should include the footer html > > I've tried using 'file' and 'virtual' on the includes bit but it still > doesn't work > > it works locally but not on the server, > I think the live environment is running apache > > to view it have a look here > http://www.ais2000.co.uk/test.asp > > footer can be seen on this page > http://www.ais2000.co.uk/AISpreview.jpg > > > Statically
its always calling the same file "Steven Burn" <somewhere@in-time.invalid> wrote in message Is it being including dynamically or statically?news:eOoD2q2IFHA.2956@TK2MSFTNGP12.phx.gbl... Show quote "Mark" <mr.davies@SPAMMMM-pleaseNoneVirgin.net> wrote in message news:422cd489$0$12848$cc9e4d1f@news.dial.pipex.com... > > Im trying to use the "includes" on an asp file > I have one file called services.asp and i've included a footer on this > page > as > PageBot.asp > > they are both in the root of the site but it doesn't include the contents > of > PageBot.asp > > if I view source on services.asp, it has this at the bottom of the page > <!--#include virtual="pageBot.asp"--> > when in fact it should include the footer html > > I've tried using 'file' and 'virtual' on the includes bit but it still > doesn't work > > it works locally but not on the server, > I think the live environment is running apache > > to view it have a look here > http://www.ais2000.co.uk/test.asp > > footer can be seen on this page > http://www.ais2000.co.uk/AISpreview.jpg > > > > it works locally but not on the server, Well, Apache doesn't run ASP out of the box... have you verified that some> I think the live environment is running apache ASP emulator is present? Otherwise your ASP will be processed as HTML/plain text and that #include directive will just be a comment. On Mon, 7 Mar 2005 22:24:23 -0000, "Mark"
<mr.davies@SPAMMMM-pleaseNoneVirgin.net> wrote: >Im trying to use the "includes" on an asp file Have you checked the log files to see what is being requested and the>I have one file called services.asp and i've included a footer on this page >as >PageBot.asp > >they are both in the root of the site but it doesn't include the contents of >PageBot.asp response? >if I view source on services.asp, it has this at the bottom of the page That sounds like the ASP isn't getting processed.> <!--#include virtual="pageBot.asp"--> >when in fact it should include the footer html >I've tried using 'file' and 'virtual' on the includes bit but it still Do you know what ASP emulator it's running? Apache doesn't do ASP>doesn't work > >it works locally but not on the server, >I think the live environment is running apache natively, so you may have problems there. Jeff
http://www.powerasp.com/content/code-snippets/includes.asp
Show quote "Mark" <mr.davies@SPAMMMM-pleaseNoneVirgin.net> wrote in message
news:422cd489$0$12848$cc9e4d1f@news.dial.pipex.com... > > Im trying to use the "includes" on an asp file > I have one file called services.asp and i've included a footer on this > page as > PageBot.asp > > they are both in the root of the site but it doesn't include the contents > of > PageBot.asp > > if I view source on services.asp, it has this at the bottom of the page > <!--#include virtual="pageBot.asp"--> > when in fact it should include the footer html > > I've tried using 'file' and 'virtual' on the includes bit but it still > doesn't work > > it works locally but not on the server, > I think the live environment is running apache > > to view it have a look here > http://www.ais2000.co.uk/test.asp > > footer can be seen on this page > http://www.ais2000.co.uk/AISpreview.jpg > > > |
|||||||||||||||||||||||