TejB:
if user name and password in database like---name and pass
If i give NAME and PASS on login page it should not login.
I want only after giving same record as in database like--name and pass
should work.
If you are using forms authentication in asp.net 2.0 then setting passwordFormat="Hashed" in web.config will set the case sensitivity, because capital and non capital will form different hashes.
You also have the option of HashPasswordforStoringInConfigFile method of formsauthentication class. Please note in this case passwords are case sensitive but not usernames.
http://msdn2.microsoft.com/en-us/library/da0adyye.aspx
If you are using other methods of authentication then perhaps using cryptography to create crypt of every username/password everytime you store will also solve this issue.
Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations