does ASP works with "bla.asp?PageID=5" ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Igal

    does ASP works with "bla.asp?PageID=5" ?

    (i worked with php befor)
    does ASP work with this method of transferring vars from page to page
    using links.
    let's say i have a page called "moo.asp" and in that page i have a var
    called "PageID"
    now i make a link to "bla.asp" and i want to use PageID in that page.

    1. can i use "bla.asp?PageID =5" ?
    2. if yes, how i use the "PageID" var in "bla.asp" ?
    3. Response.Write( id) ofc. didn't work =) as expected, he he...

  • Bob Barrows [MVP]

    #2
    Re: does ASP works with "bla.asp?P ageID=5" ?

    Igal wrote:
    (i worked with php befor)
    does ASP work with this method of transferring vars from page to page
    using links.
    let's say i have a page called "moo.asp" and in that page i have a var
    called "PageID"
    now i make a link to "bla.asp" and i want to use PageID in that page.
    >
    1. can i use "bla.asp?PageID =5" ?
    2. if yes, how i use the "PageID" var in "bla.asp" ?
    3. Response.Write( id) ofc. didn't work =) as expected, he he...
    Yes. It's called a auerystring, and can be found in the Request object's
    QueryString collection:

    Response.Write Request.QuerySt ring("PageID")
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Comment

    • Bob Barrows [MVP]

      #3
      Re: does ASP works with "bla.asp?P ageID=5" ?

      Igal wrote:
      (i worked with php befor)
      does ASP work with this method of transferring vars from page to page
      using links.
      let's say i have a page called "moo.asp" and in that page i have a var
      called "PageID"
      now i make a link to "bla.asp" and i want to use PageID in that page.
      >
      1. can i use "bla.asp?PageID =5" ?
      2. if yes, how i use the "PageID" var in "bla.asp" ?
      3. Response.Write( id) ofc. didn't work =) as expected, he he...
      Oh! And you can find the ASP Scripting documentation here:

      --
      Microsoft MVP -- ASP/ASP.NET
      Please reply to the newsgroup. The email account listed in my From
      header is my spam trap, so I don't check it very often. You will get a
      quicker response by posting to the newsgroup.


      Comment

      Working...