Validation Functions:
To check if the input field :
To check if the input field :
- Contains any numbers: Regex.IsMatch(inputFNAME, "[0-9]")
- Is a numeric or not : if (!Int32.TryParse(input, out _X))
- Is having non-Alphabetic Characters :!Regex.IsMatch(inputSTATE, @"^[a-zA-Z]+$")
No comments:
Post a Comment