public static bool isPostalCode(Control control) { if (FormValidators.hasText(control)) { return(Validators.isPostalCode(control.Text)); } return(false); }
public static bool isMobilePhoneOrNull(Control control) { if (FormValidators.hasText(control)) { return(Validators.isMobilePhone(control.Text)); } return(true); }
public static bool isPhoneWithExtensionOrNull(Control control) { if (FormValidators.hasText(control)) { return(Validators.isPhoneWithExtension(control.Text)); } return(true); }
public static bool isParticularPhone(Control control) { if (FormValidators.hasText(control)) { return(Validators.isParticularPhone(control.Text)); } return(false); }
public static bool isCurrency(Control control) { if (FormValidators.hasText(control)) { return(Validators.isCurrency(control.Text)); } return(false); }
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); }