Click here to Skip to main content
15,886,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends how to validate textbox having one charector one specisal symbol and one numaric minimum lenth of charectors is 8 in asp.net so pls help me its urgent..........
Posted
Comments
I.explore.code 15-Oct-12 5:35am    
Use Regular Expressions to validate such specific input validation needs. Use this tool to test your RegExs: RegEx Validator.
MT_ 15-Oct-12 7:09am    
Simple regex ^.*(?=.{8,})(?=.*\d)(?=.*[a-zA-Z]).*$ in custom validator

1 solution

Hi,
Use the following Regular Expression to validate your TextBox.
C#
^(?=.{8,})(?=.*[a-z])(?=.*[@#$%^&+=]).*$



--Amit
 
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