Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all
I have a TextBox that I want not start with 0. After the first digit was 1-9 , then enter a digit from 0-9.(asp.net)
Please guide and help
Posted

1 solution

One of the ways: Read about RegularExpressionValidator and try out!

Here:
MSDN: RegularExpressionValidator Class[^]
RegularExpressionValidator In ASP.NET[^]

Traditional other way: is to track onkeypress/onblur or similar event to track the data entered and then act accordingly.
 
Share this answer
 

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