Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual #include is virtually impossible

Status
Not open for further replies.

OreoBean1

Technical User
Oct 23, 2005
27
US
Ok, guys. I have an ASP scripted page that has been working as an RSS to HTML feed. It converts my RSS feeds without fail on it's own page. I cannot seem to display some of the feed items on a different page using #include (exact code) below). Any suggestions?

Code:
<!-- #include virtual="example.asp"-->

I was thinking this is as basic of a code as it gets, I don't understand why it's failing. Oh by the way there is no error, the only output is a blank line on the pge where the items should be showing up.
 
Hi,
If I remember correctly,
#include virtual=
requires a virtual directory name as well as the file name.

<-- #include/virtual=/myvirtualdirectory/example.asp -- >




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
if you are doing something like this:

<!-- #include virtual="example.asp"-->

then it should be :

<!-- #include file="example.asp"-->

or else...include the directory too if you use the virtual keyword

-DNG
 
Sorry, my mistake. I have tried the:

<!-- #include virtual="folder/example.asp"-->

and the:

<!-- #include file="example.asp"-->

and I know the ASP file is located in the same directory as the HTML page it should display on. It's not showing anything with either. Can it be outside the <BODY> </BODY> tags? Would it work out there with an ASP script if I called it from inside the <BODY> </BODY> tags?
 
please do some response.write statements for debugging purposes and see where actually you are getting error...without actual error messages its difficult to help you...

thanks

-DNG
 
ok DNG, I'm not that experienced with the response.write statements. where would would i start?
 
when i said use response.write statements for debugging purposes...what i mean is something like this...simple sample code...

<%
Dim blah, foo, bar

blah="hi there, "
response.write blah

foo="OreoBean1"
response.write foo

bar=blah & foo
response.write bar
%>

so i am not getting my final output bar value as hi there, OreoBean1..then i would put response.write after each line or at the main places to check if all my variables are holding the values fine...so you have to do something similar and check at all places in the code and see where it is breaking...
-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top