Saturday, April 11, 2009

TextBox for mobile number validation ie it start with 9 and followed by 9 digits

Below script helps to bind the user to enter the value in the textbox which
which starts with digit 9 and followed by nine digits
for example 9001234567
To achieve 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:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home