Click here to Skip to main content
14,698,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to apply a Validation In MVC that if user name and pwd is "ADMIN", then Login should not be there with "admin"... i want letter case validation in login password... tell me

I would suggest to save password as MD5. And check it each time user login into the system. This will increase the security and will solve your problem.
Regular expression Library[^]
Check here if you get your requirement.
But if you only want Capital letters, then you can use ASCII codes and check in the javascript and then allow the call to happen else show an alert or error message from the javascript itself.
Hope this helps

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