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.
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.
Hiren SoniPosted Dec 3, 2009, 7:37 AM
Kirtan PatelPosted Nov 29, 2009, 8:02 AM
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
Prateek KumarPosted Nov 29, 2009, 6:45 AM
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 PatelPosted Nov 29, 2009, 4:47 AM
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 !!");
}