IIS ASP - Embed htm file in asp?

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > April 2006 > Embed htm file in asp?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Embed htm file in asp?
Ivan Debono

2006-04-27, 7:51 am

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


Evertjan.

2006-04-27, 7:51 am

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?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Ivan Debono

2006-04-27, 7:51 am

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

"Evertjan." <exjxw.hannivoort@interxnl.net> schrieb im Newsbeitrag
news:Xns97A876209CC6Deejj99@194.109.133.242...
> Ivan Debono wrote on 17 apr 2006 in
> microsoft.public.inetserver.asp.general:
>
>
> "another"???
>
> An asp-file is not an htm-file.
>
>
> if on the same server and root:
>
> <!--#include virtual ="/dir/file.htm"-->
>
> Did you search for solutions first?
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Evertjan.

2006-04-27, 7:51 am

Ivan Debono wrote on 17 apr 2006 in
microsoft.public.inetserver.asp.general:
> "Evertjan." <exjxw.hannivoort@interxnl.net> schrieb im Newsbeitrag
> news:Xns97A876209CC6Deejj99@194.109.133.242...

Please explain. It seems below you are using the asp file like an html
file, without processing.
[vbcol=seagreen]

[please do not toppost on usenet]
[vbcol=seagreen]
> 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.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Ivan Debono

2006-04-27, 7:51 am

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." <exjxw.hannivoort@interxnl.net> schrieb im Newsbeitrag
news:Xns97A8846AB8Eeejj99@194.109.133.242...
> 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]
>
>
> If the .txt-file is accessable via the root, and you are processing the
> .asp-fileASP, it must work.
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Evertjan.

2006-04-27, 7:51 am

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

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com