protected void btn_Login_Click(object sender, EventArgs e) { string name = tb_Name.Text.ToLower(); string password = tb_Password.Text; string check = Account.check(name, password); if (check == "User" || check == "Admin") { Session["Current_Logged"] = tb_Name.Text; if (check == "Admin") { Response.Redirect("~/Web/Admin/ProductList.aspx"); } else { Response.Redirect("~/Web/Account/Dashboard.aspx"); } } }