Benny Sutton is 4 hire - just click here

Validate Value is a Number

Convenient way to check if string could be a number

           
        public static bool IsNumeric(this string value)
        {
            Regex regex = new Regex(@"[0-9]");
            return regex.IsMatch(value);
        } 
    

Returns true/false - call like this...

         
            strToCheck.IsNumeric();