Need help with Get.QueryString

Results 1 to 3 of 3

Thread: Need help with Get.QueryString

  1. #1
    Strider Guest

    Default Need help with Get.QueryString

    I wanna have it so it will get the &#039id&#039 from the address (http://.../script.asp?id=0)<BR><BR>then I wanna use it in an include:<BR><BR>&#060;!--#include file="&#060;%=id%&#062;<BR><BR>I need the proper code for this.

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: Need help with Get.QueryString

    You can&#039t do this, exactly. You can do a bit of a workaround, though. There is a great article on ActiveServerPages.com that explains why you can&#039t do this, and illustrates the workaround:<BR><BR>Include Files Dynamically<BR>http://www.activeserverpages.com/learn/includedynamic.asp<BR><BR>Happy Programming!

  3. #3
    Jason Buck Guest

    Default RE: Need help with Get.QueryString

    RESPOND TO:<BR><BR> <BR>Need help with Get.QueryString<BR> <BR>Strider - 26 Jul - 10:07:42 PM<BR>--------------------------------------------------------------------------------<BR>I wanna have it so it will get the &#039id&#039 from the address (http://.../script.asp?id=0)<BR><BR>then I wanna use it in an include:<BR><BR>&#060;!--#include file="&#060;%=id%&#062;<BR><BR>&#060;% strID = request.querystring("ID") %&#062;<BR>&#060;!--#include file="&#060;%=strID %&#062;.txt"--&#062;<BR><BR>I don&#039t know if this will work, I have not tried it but I believe the syntax is right. You can replace .txt with .asp.<BR><BR>Respectfully,<BR><BR>Jason<BR>webmast er@wnj.com<BR> <BR> <BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •