Blog that contains articles about new technologies related or not with programming.
I will describe and solves some problems that I encounter in my career.
ASP .NET, AJAX, Javascript, C++, C# and SQL are some of the subjects that will appear.
24 October 2011
check whether the given value is string or not
public static bool IsNumeric(String strVal) { Regex reg = new Regex("[^0-9-]"); Regex reg2 = new Regex("^-[0-9]+$|^[0-9]+$"); return (!reg.IsMatch(strVal) && reg2.IsMatch(strVal)); } -----------------------------
No comments:
Post a Comment