I have two textboxes user name and password and these are connected to sqldatabase table
i want these textboxes case sensitive help me.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Nov 28, 2009, 11:47 PM EST
You want Case Sensitive or Case insensitive ??
because when you compare password using simple IF condition its By default case sensitive .
if you want to do case insensitive comparison then you can do it like
string pass_from_db = "test";
if ( txtpassword.Text.ToLower() == password_from_Database.ToLower())
{
MessageBox.Show(" login success ");
}
else
{
MessageBox.Show("Access denied !!");
}
Prateek Kumar18 reputationPosted Nov 29, 2009, 1:45 AM EST
and i have two form from 1st from i register a user which can fill userid and password in any format
but by 2nd form(login) when they enter then the format shld be same as registered
waiting for right reply
Kirtan PatelRank #292 · 8.6K reputationPosted Nov 29, 2009, 3:02 AM EST
i could not explain you here because i don't have your database .
please send me your project files +database(zip) to me at
[email protected]
i will provide you full code. according to your database
Hiren SoniRank #694 · 3.5K reputationPosted Dec 3, 2009, 2:37 AM EST