Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Monday, January 3, 2011
Number only validation in Textbox of ASP.NET by Regular Expressionvalidator
<asp:TextBox ID="TextBox1" runat="server"/>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="Number Only" ValidationExpression="^\d+$" />
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)