Login password injection is not working - how to implement in my project?
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
SqlConnection con = new SqlConnection(@"Data Source=DESKTOP-G9SO8KA;Initial Catalog=coolege;Integrated Security=True");
string qry="select * from tblstudent where Email='"+Login1.UserName+"'and Password='"+Login1.Password+"' ";
adpt = new SqlDataAdapter(qry,con);
dt = new DataTable();
adpt.Fill(dt);
if (dt.Rows.Count >= 1)
{
Response.Redirect("index.aspx");
}
}
SqlCommandwith parameters. Else this obligatory XKCD will happen to you