ASP.NET判断输入的是否为数字

string str = "123"; int x = 0; int.TryParse(str, out x) 
返回一个bool型 为真str就是数字 为假str就不是一个数字