Hii i will shaare my code
In this code when click the valaditon is showing but when click to hit database it's not working
protected void Button2_Click(object sender, EventArgs e)
{
string luname = username.Value;
string lpassword = password.Value;
cmd = new SqlCommand("select User_Email,User_Password from Dim_Users where User_Email='"+luname+"',User_Password='"+lpassword+"'");
int i = cmd.ExecuteNonQuery();
if(i != 0)
{
Response.Redirect("Home.aspx");
con.Close();
}
else
{
Response.Redirect("Error.aspx");
con.Close();
}
}
Sourav Kumar DasPosted Oct 8, 2018, 3:59 AM
Laxmidhar SahooPosted Oct 5, 2018, 8:17 AM
Harish BatchuPosted Oct 5, 2018, 8:12 AM
Laxmidhar SahooPosted Oct 5, 2018, 3:56 AM