Form Validation

Form Validation
using ncTools;

 public bool IsValiDate(string pParamValue)
    {
        //- Validate the numeric date mm/dd/yyyy value       
        return IsValidThe.DateInput(pParamValue);
    }     
    public bool IsValidNumeric(string pParamValue)
    {
       //- false for non float value        
       return IsValidThe.NumericValue(pParamValue,false);
    }
    public bool IsValidPhone(string pParamValue)
    {
        //- Validate the numeric 10 digits value       
        return IsValidThe.Phone(pParamValue);
    }
    public bool IsValidEmail(string pParamValue)
    {
        //- Validate the valid email address       
        return IsValidThe.EmailAddress(pParamValue);
    }
    public bool IsValidSocial(string pParamValue)
    {
        //- Validate the numeric 9 digits value               
        return IsValidThe.SocialSecurity(pParamValue);
    }
It can also be used directly ncTools.IsValidThe.{Method}()

Download the Latest version of the ncTools here. ncTools.zip

Add Feedback