Back to product page

QueryVariables property


Holds collection of query variables used in URL.

Type

WebHeaders object

Syntax

  • C#
  • VB.NET
WebHeaders QueryVariables {get; };

ReadOnly Property QueryVariables As WebHeaders

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.NET 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:

WebHeaders(0).Name=" userid", WebHeaders(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