IsNumeric
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I have a textbox.I want to check if data entered in it contains any characters other than digits from 0 to 9.How can I do that. Are there any built-in functions to do this.I don't want to restrict the entry of characters. I want to know whether the data is numeric or alphanumeric. Regards, Uma
-
Hi, I have a textbox.I want to check if data entered in it contains any characters other than digits from 0 to 9.How can I do that. Are there any built-in functions to do this.I don't want to restrict the entry of characters. I want to know whether the data is numeric or alphanumeric. Regards, Uma
You could use
int.TryParse(..)
which will tell you if a string can be parsed into a number.