Labels

Thursday, June 25, 2015

Data Validations using C#

Validation Functions:

To check if the input field :

  1. Contains any numbers:  Regex.IsMatch(inputFNAME, "[0-9]")
  2. Is a numeric or not : if (!Int32.TryParse(input, out _X))
  3. Is having non-Alphabetic Characters :!Regex.IsMatch(inputSTATE, @"^[a-zA-Z]+$")

No comments:

Post a Comment