RequiredFieldValidator::EvaluateIsValid Method ()
.NET Framework (current version)
Called during the validation stage when ASP.NET processes a Web Form.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System::Booleantrue if the value in the input control is valid; otherwise, false.
The following code example demonstrates how to override the EvaluateIsValid method in a custom server control so that it always returns false if the value of the RequiredFieldValidator is null or empty, and always returns true otherwise.
.NET Framework
Available since 1.1
Available since 1.1
Show: