Is Numeric By Regular Expression
using System.Text.RegularExpressions; public static class Validate { public static bool IsNumeric(string value) { if (string.IsNullOrEmpty(value)) return false; Regex numeric = new Regex(@"^[0-9]+$", RegexOptions.Compiled | RegexOptions.IgnoreCase); return numeric.IsMatch(value); } }