//Creating regular expression for numeric values
Regex rxNum = new Regex(@"^[0-9\s]+$");
//using regular expression on a TextBox Control in C#
if (!rxNum.IsMatch(textbox1.Text))
Response.write("Textbox1 has Numeric value");
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment