Question:You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You derive a new validation control from the BaseValidator class.
The validation logic for the control is implemented in the Validate method in the following manner:
protected static bool Validate(string value)
{
// ...
}
You need to override the method that validates the value of the related control.
Which override method should you use? 

A protected override bool EvaluateIsValid() {
 string value = GetControlValidationValue(this.Attributes["AssociatedControl"]);
 bool isValid = Validate(value);
 return isValid;

B protected override bool ControlPropertiesValid() {
 string value = GetControlValidationValue(this.ValidationGroup);
 bool isValid = Validate(value);
 return isValid;

C protected override bool EvaluateIsValid() {
 string value = GetControlValidationValue(this.ControlToValidate);
 bool isValid = Validate(value);
 return isValid;

D protected override bool ControlPropertiesValid() {
 string value = GetControlValidationValue(this.Attributes["ControlToValidate"]);
 bool isValid = Validate(value);
 this.PropertiesValid = isValid;
 return true;

+ Answer
+ Report
Total Preview: 3424

Copyright © 2024. Powered by Intellect Software Ltd