string email = "value1 & value2";
string password = "pass & pass1";
if (TextBox1.Text == email & TextBox2.Text == password)
{
Session["id"] = TextBox1.Text;
Response.Redirect("Dashboard.aspx");
Session.RemoveAll();
}
else
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Sorry !! Email Id Or Password wrong ')", true);
}
how to perform or operation in string email and password
Aucun commentaire:
Enregistrer un commentaire