Ejemplo n.º 1
0
 private void setFormFieldValidationExpressions()
 {
     //Input Field Validation Settings
     nameLengthValidator.ValidationExpression    = RegularExpression.MaxLength(50);
     nameLengthValidator.ErrorMessage            = ValidationMessages.MaxLength(50);
     addressLengthValidator.ValidationExpression = RegularExpression.MaxLength(50);
     addressLengthValidator.ErrorMessage         = ValidationMessages.MaxLength(50);
     zipLengthValidator.ValidationExpression     = RegularExpression.MaxLength(10);
     zipLengthValidator.ErrorMessage             = ValidationMessages.MaxLength(10);
     phoneNumberValidator.ValidationExpression   = RegularExpression.PhoneNumber;
     phoneNumberValidator.ErrorMessage           = ValidationMessages.PhoneNumber;
 }