469,935 Members | 2,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

include file problem

Hi
I'm trying to include file using
<!-- #include file="abc.asp"--> and it works without any
problem.

but the problem is in if file name is in asp variable how
should i write???

Thanx in advance...
david
Jul 19 '05 #1
2 1730
You cannot because the include files are preprocessed.

What you can do is use FSO and open the file and write its contents to the
Response.

--
Roji. P. Thomas
SQL Server Programmer
--------------------------------------
"david" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
Hi
I'm trying to include file using
<!-- #include file="abc.asp"--> and it works without any
problem.

but the problem is in if file name is in asp variable how
should i write???

Thanx in advance...
david

Jul 19 '05 #2
david wrote:
Hi
I'm trying to include file using
<!-- #include file="abc.asp"--> and it works without any
problem.

but the problem is in if file name is in asp variable how
should i write???


you can't - take a look at server.execute
--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Yannick Turgeon | last post: by
2 posts views Thread by Kupo | last post: by
6 posts views Thread by alan | last post: by
60 posts views Thread by Derrick Coetzee | last post: by
5 posts views Thread by David Mathog | last post: by
6 posts views Thread by tshad | last post: by
9 posts views Thread by chat | last post: by
5 posts views Thread by Tio | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.