how to create Numeric and String only Textbox control in ASP.NET?
The TextBox accept only numeric Values using following steps in ASP.NET
1. select Textbox control and drag in to Web Page.
2.Select “RegularExpressionValidator ” Control and paste in to Web Page.
3.Right Click->RegularExpression Control and select Property.
4. Set the following Validation Expression
//is numeric validation
([0-9])*
//String Validation
([a-z])*([A-Z])*
5. Run
Posted by Mahesh ( Tryangled )