954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

conversion of string into binary

i wanted to validate password in login form which i created in c#.I entered password in database in lower case but in web form when i enter password in upper case it takes that password and goes to next page. It must validate only lowercase password when i entered password in lowercase in database and show error'invalid password ' when enter a paassword in uppercase.

msamir
Newbie Poster
7 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

The problem might be the way your database makes string comparisons. Depending on what database you use you can probably set it to do either case sensitive or case insensitive comparisons. Also check the password that your program is actually sending to the db to make sure it has the correct case -- are you sure your program is not converting the string to lower case?

Ancient Dragon
Retired & Loving It
Team Colleague
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You