HttpRequestBase.ValidateInput Method
When overridden in a derived class, causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.
Assembly: System.Web.Abstractions (in System.Web.Abstractions.dll)
| Exception | Condition |
|---|---|
| NotImplementedException | Always. |
The HttpRequestBase 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.