public static bool IsNum(string numstr)
{
if(numstr.Length==0)
return false;
Regex reg = new Regex("^\\d+$");
if(reg.Match(numstr).Success)
return true;
else
return false;
}