By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

parsing a query in an asp file

P: 1
Thanks for your time taking a look at my problem.

Im trying to include an include file line for another asp file in my asp page with the following

<!--#include File='bedroom10.asp?destinationid=31'-->

The good news was I was quickly told this code would not work, ok however I was steered to a previous thread but could not follow the conclusions, it has since closed.

Previous thread was

My newness to asp and include files is the problem I think, as you may guess I'm in early learning stages and my attempts failed.Now this is where I got lost.

I wanted to include 3 files in my asp

<!--#include File='bedroom10.asp?destinationid=31'-->
<!--#include File='bedroom10.asp?destinationid=32'-->
<!--#include File='bedroom10.asp?destinationid=33'-->

so while Im fumbling around in the dark I see on the previous thread page these options

dim id : id=123
<!-- #Include File="file.asp" -->
<!-- #Include File="file.asp" -->

....use this:

<!-- #Include File="file.asp" --(with Sub defined)
DoStuff 123
DoStuff 321

Sadly it means little to me. Can someone someone see what Im trying to achieve and hopefully suggest a solution, with some code as an example.

I am very new this this so please help. Im always willing to learn, but need a teacher to get me started, thank you for your time
Jun 1 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.