How to login using more than one string in Asp.net..?

时间:2018-02-26 17:35:09

标签: c# asp.net visual-studio web

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

0 个答案:

没有答案