string s ="45"; int i; bool isNum = int.TryParse(s.ToString(), out i); if (isNum) Response.Write(i); //integer else Response.Write("Not an interger");
Related posts
Add comment