protected override bool EvaluateIsValid ()
{
Exception ex = ValidationException;
if (ex != null) {
ErrorMessage = HttpUtility.HtmlEncode (ex.Message);
return false;
}
string controlToValidate = ControlToValidate;
if (String.IsNullOrEmpty (controlToValidate))
return true;
string value = GetControlValidationValue (controlToValidate);
return true;
}