protected void Button1_Click(object sender, EventArgs e) { int Result = 0; entity.Email = txtEmail.Text; entity.Password = txtPassword.Text; Result = business.BusinessLogins(entity); if (Result == 0) { txtMessage.Text = "Incorrect Email or Password"; } else { Session["Admin"] = Result; Response.Redirect("Dashboard.aspx"); } }