When i was using Upper case or Lower case letters for Password it is logged in but i want if i use lower case letters it does not logged in with upper case letters
plz help me.... :(
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Nov 30, 2014, 1:27 AM
string password= "USERS";
bool result = password.Equals(textbox.Text, StringComparison.Ordinal);
based on this bool variable, you can take your decision whether to allow login or not. Hope it answered your query.
Chinna NethaPosted Nov 30, 2014, 1:20 AM
Chinna NethaPosted Nov 30, 2014, 1:20 AM
but when iam using password.. i gave upper case alphabet letters. but..., when i enter lower case letters also it is opening.... in that registration page how can write code... plz help me.
Shweta LodhaPosted Nov 30, 2014, 1:16 AM
Are you looking for case-sensitive comparison ?
Joginder BangerPosted Nov 30, 2014, 1:14 AM
plz share you code, without code i can't understand.