TextBox should only contain the following format 12345-67890
Below script helps to bind the user to enter the value in the textbox which
contain first five numbers followed by one hypen and followed by five numbers
for example 12345-67890
To achive this simply follow the following Steps
Write the below javascript function in the aspx page under head section :
In the Body Section of the .aspx page just bind the onClientclick event of the button to the function above in the javascript to check the value of TextBox1
Take one texbox and button control on the page as shown below
contain first five numbers followed by one hypen and followed by five numbers
for example 12345-67890
To achive this simply follow the following Steps
Write the below javascript function in the aspx page under head section :
In the Body Section of the .aspx page just bind the onClientclick event of the button to the function above in the javascript to check the value of TextBox1
Take one texbox and button control on the page as shown below
Labels: Regular Expression

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home