HttpRequestWrapper.ValidateInput Method ()

 

Causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.

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

public override void ValidateInput()

The HttpRequest class uses input validation flags to determine whether to perform validation on the request collections that are accessed through the Cookies, Form, and QueryString properties. The ValidateInput method sets these flags so that when the get accessors of the Cookies, Form, or QueryString properties are invoked, input validation is performed. Validation works by checking all input data against a hard-coded list of potentially dangerous data.

.NET Framework
Available since 3.5
Return to top
Show: