Validates data submitted by a client browser and raises an exception if potentially dangerous data is present.
[Visual Basic] Public Sub ValidateInput() [C#] public void ValidateInput(); [C++] public: void ValidateInput(); [JScript] public function ValidateInput();
|HttpRequestValidationException||Potentially dangerous data was received from the client.|
If the validation feature is enabled by page directive or configuration, this method is called during the Page's ProcessRequest processing phase. ValidateInput can be called by your code if the validation feature is not enabled. Request validation works by checking all input data against a hard-coded list of potentially dangerous data.
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family