Consider below query , i am passing (-- double dash in username to bypass password)
- SqlCommand cmd=new SqlCommand("Select * from users where username=@UserName and Password=@password",con );
According to me , the query now becomes
- Select * from users where username='Sachin'--' and Password=''
Please take the same example and clearify.

Sachin SinghPosted Dec 28, 2020, 3:13 PM
Sachin SinghPosted Dec 28, 2020, 2:53 PM
Sachin SinghPosted Dec 28, 2020, 2:51 PM
Amit GuptaPosted Dec 28, 2020, 2:47 PM