parsing a query in an asp file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mickb
    New Member
    • Jun 2016
    • 1

    parsing a query in an asp file

    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?destinatio nid=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
    https://bytes.com/topic/asp-classic/answers/627367-pass-parameters-include-file-file-asp

    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?destinatio nid=31'-->
    <!--#include File='bedroom10 .asp?destinatio nid=32'-->
    <!--#include File='bedroom10 .asp?destinatio nid=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" -->
    id=321
    <!-- #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
Working...