Click or drag to resize

HttpExtensionsQueryStringOrFormValue Method

Gets the specified QueryString/Form key from the HttpRequest. Unlike HttpRequest[key], the request Cookies and ServerVariables collections are NOT searched. Only the QueryString and Form collections, in that order, are searched.

Namespace:  NetQuarry.Net
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string QueryStringOrFormValue(
	this HttpRequest req,
	string key
)

Parameters

req
Type: System.WebHttpRequest
The HttpRequest, may be null.
key
Type: SystemString
The name of the key.

Return Value

Type: String
The value, if any.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequest. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also