Ads 468x60px

For New Update Use this Link Offer for you


Tuesday, 23 July 2013

How to allow only Numeric values into a textbox

How to allow only Numeric values into a textbox
Introduction :-

In my previous article i have explained how i can use validation control in this article I am explain how i can allow online integer values for text box using regular expression in

Description : -
In my Previous article i have explained how to validated form using jquery in i have Provided Full Description with example for  each and every  control in Name of Controls are


In this article i have explain how to validate textbox using regular expression allow only integer values

Process :-
1 : - Create a new project in and add new from and drag and drop a text box and provide the id to the textbox.In this article the id of text box is txt_priority  .
2 : - Drag and drop the Regular Expression validator on the form and set the property as show below
ID =RegularExpressionValidator1
ControtoValidate= txt_priority   [this is textbox id]
ErrorMessage=Please enter numbers only

complete example as show below

<asp:RegularExpressionValidator id="RegularExpressionValidator1"
                   ErrorMessage="Please enter numbers only"
                   runat="server" ForeColor="Red"/>

1 comment:



New Updates

Related Posts Plugin for WordPress, Blogger...

Related Result