Back to product page

QueryVariables property


Holds collection of query variables used in URL.

Syntax

  • Basic
object.QueryVariables
The QueryVariables(object) syntax has these parts:
objectAn expression evaluating to an object of type WebRequest

Remarks

QueryVariables holds collection of variables client sent via URL. For example, when client requests URL like this:

http://somehow.com/somepath/somefile.htm?userid=joe&password=mypass&counter=1

then wodWebServer will create new collection (WebHeaders collection type is used, simply because, just as headers, these variables also have their names and their values) and populate it so that it contains 3 WebHeader objects, containing following:
 
WebHeader(0).Name="userid"
WebHeader(0).Value="joe"
 

and so on for other variables in the URL. To access specific item from this collection, you can use this line:
 
User.Request.QueryVariables("something")
 


Platforms

Windows