Exemple #1
0
 public static bool isPostalCode(Control control)
 {
     if (FormValidators.hasText(control))
     {
         return(Validators.isPostalCode(control.Text));
     }
     return(false);
 }
Exemple #2
0
 public static bool isMobilePhoneOrNull(Control control)
 {
     if (FormValidators.hasText(control))
     {
         return(Validators.isMobilePhone(control.Text));
     }
     return(true);
 }
Exemple #3
0
 public static bool isPhoneWithExtensionOrNull(Control control)
 {
     if (FormValidators.hasText(control))
     {
         return(Validators.isPhoneWithExtension(control.Text));
     }
     return(true);
 }
Exemple #4
0
 public static bool isParticularPhone(Control control)
 {
     if (FormValidators.hasText(control))
     {
         return(Validators.isParticularPhone(control.Text));
     }
     return(false);
 }
Exemple #5
0
 public static bool isCurrency(Control control)
 {
     if (FormValidators.hasText(control))
     {
         return(Validators.isCurrency(control.Text));
     }
     return(false);
 }
Exemple #6
0
        public static bool isEmail(Control control)
        {
            if (FormValidators.hasText(control))
            {
                try
                {
                    MailAddress m = new MailAddress(control.Text);

                    return(true);
                }
                catch (FormatException)
                {
                    return(false);
                }
            }
            return(false);
        }