Results 1 to 5 of 5

Thread: What do you call the stuff after the ? in a URL?

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    What do you call the stuff after the ? in a URL?

    Hi,
    Is there a proper term for the commands(?) following the question mark in a URL?

    e.g. http://vbforums.com/newthread.php?s=&action=newthread&forumid=4

    Thanks,
    Al.
    A computer is a tool, not a toy.

  2. #2
    Fanatic Member
    Join Date
    Jul 2001
    Location
    London UK
    Posts
    671
    QueryString

  3. #3

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Thanks for the reply.
    So QueryString isn't an ASP specific term.
    Al.
    A computer is a tool, not a toy.

  4. #4
    Addicted Member
    Join Date
    Aug 2000
    Location
    Pennsylvania, USA
    Posts
    168
    Well, specifically, you can use the QueryString collection of the Response object to get the querystring for the page. For example, Request.QueryString.Item("action") would return "newthread" in your example.

    Or, you could just use Request.QueryString, which would return the string "s=&action=newthread&forumid=4" in your example.
    Wydok

    "It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years."

    -John Von Neumann ca. 1949

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    the official W3C term is query.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

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



Click Here to Expand Forum to Full Width