Embed htm file in asp?

I

Ivan Debono

Hi,

I have an asp file that as a URL variable. The variable contains the url to
another htm file. How can I embed the htm file within the body of the asp
file?

Thanks,
Ivan
 
E

Evertjan.

Ivan Debono wrote on 17 apr 2006 in
microsoft.public.inetserver.asp.general:
I have an asp file that as a URL variable. The variable contains the
url to another htm file.

"another"???

An asp-file is not an htm-file.
How can I embed the htm file within the body
of the asp file?

if on the same server and root:

<!--#include virtual ="/dir/file.htm"-->

Did you search for solutions first?
 
I

Ivan Debono

I've tried the #include but it doesn't work. I googled quite a while but
proposed solutions don't work in my situation.

I just want to include the contents in the asp file so that they are
displayed.

Ivan
 
E

Evertjan.

Ivan Debono wrote on 17 apr 2006 in
microsoft.public.inetserver.asp.general:
Please explain. It seems below you are using the asp file like an html
file, without processing.

[please do not toppost on usenet]
I've tried the #include but it doesn't work. I googled quite a while
but proposed solutions don't work in my situation.

I just want to include the contents in the asp file so that they are
displayed.

If the .txt-file is accessable via the root, and you are processing the
..asp-fileASP, it must work.
 
I

Ivan Debono

Did a workaround and it works. I changed it into a text file and open it
with the TextStream object, then use Response.Write :)

Ivan

Evertjan. said:
Ivan Debono wrote on 17 apr 2006 in
microsoft.public.inetserver.asp.general:
Please explain. It seems below you are using the asp file like an html
file, without processing.

[please do not toppost on usenet]
I've tried the #include but it doesn't work. I googled quite a while
but proposed solutions don't work in my situation.

I just want to include the contents in the asp file so that they are
displayed.

If the .txt-file is accessable via the root, and you are processing the
.asp-fileASP, it must work.
 
E

Evertjan.

Ivan Debono wrote on 17 apr 2006 in
microsoft.public.inetserver.asp.general:
Did a workaround and it works. I changed it into a text file and open it
with the TextStream object, then use Response.Write :)

congratulations.

evenso: please do not toppost on usenet
 

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

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,820
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top