0

I have added this code and get the count.

  string qry2 = "select count(*) from RegCustomer where username='"+TextBoxUN.Text+"' and password='"+TextBoxPW.Text+"'";

the password stored in the database is - apple

it will return 1 as the count if we type the correct username with this pw - apple

but when type password as this - Apple
it will also return 1. it does not check the password is in lower case or not.

I used varchar(50) for the password field in the SQL server.

Senura Dissanayake
  • 654
  • 1
  • 9
  • 29

0 Answers0