Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
You could use a Regex: string str = myTextBox.Text; Regex includesNonNumeric = new Regex(@"[^\d]"); if (includesNonNumeric.IsMatch(str)) { // OK } else { //...
28 Dec 2012nityasri 2 alternatives
to validate for numbers and alphabets in c# asp.net2.0 in codebehind file,the textbox should accept all numbers,alphabets,special characters...but textbox should not contain only numbers if it contains only numbers error message in alert box should be thrown..please help me how to code in c#.net...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.