Params Property

HttpRequest.Params Property


Gets a combined collection of QueryString, Form, Cookies, and ServerVariables items.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public NameValueCollection Params { get; }

Name-value pairs are added to the collection in the following order:

  1. Query-string parameters.

  2. Form fields.

  3. Cookies.

  4. Server variables.

The following code example shows how to loop through the Params property for a page and how to display each key/value pair.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft