Click here to Skip to main content
15,883,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am validate mobile number using FilteredTextBoxExtender like this,


<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" FilterType="Numbers" runat="server"
TargetControlID="txtmobilenumber">


<asp:TextBox ID="txtmobilenumber" runat="server" Width="145px" CausesValidation="True"
MaxLength="10" >



but it does not validate if i am entering 3 digits number means it also accept please help me how i validate mobile number
Posted
Comments
Shweta N Mishra 17-Nov-14 5:00am    
you have specified maxlength, you should have some validation for minlength.
jkirkerx 17-Nov-14 16:31pm    
What's the difference between a mobile number and a phone number?
What country is the number for?, most countries are different.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900