How can I use QueryString to call a page?

Results 1 to 4 of 4

Thread: How can I use QueryString to call a page?

  1. #1
    Join Date
    Dec 1969
    Posts
    18

    Default How can I use QueryString to call a page?

    I am trying to use QueryString to call a web page. For example: say I am currently at the default page and I want to go to another page paged called discuss.htm. So, I click the link and the actuall URL is something like this... http://adomain/default.asp?doc=dicuss . I want to be able to take this querystring variable and use it to call the corresponding page. Is that possible? It seems like I&#039ve seen Web sites do this before. Thanks in advance for any suggestions.<BR><BR>--Bear

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: How can I use QueryString to call a page?

    myURL= "http://www.domain.com/" & Request.QueryString("doc") & ".html"<BR>response.redirect myURL<BR><BR>Hope this helps... Cheers!

  3. #3
    ActiveALLI Guest

    Default Note: How can I use QueryString to call a page?

    Note that you have to use that code at the top of the default.asp page (before the "header" is written)<BR>another thing is to do a Response.Buffer=True before that<BR>so you wont get the annoying "page has moved may be found here"

  4. #4
    Join Date
    Dec 1969
    Posts
    18

    Default Thanks!!!

    Thanks a lot. I knew it had to be something like that and you got me pointed in the right direction :)


Posting Permissions

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