protected void Btn_Login_Click(object sender, EventArgs e) { try { int users = aa.SignIn(txt_username.Value, txt_pass.Value); int user_id; if (Session["UserID"] != null) { user_id = Convert.ToInt32(Session["UserID"].ToString()); } if (users == 1) { Session["Login2"] = txt_username.Value; Session["UserTypeID"] = users; Response.Redirect("AdminOp.aspx"); } else if (users == 2) { //Session["UserID"] = aa.SignIn(txt_username.Value, txt_pass.Value); Session["Login2"] = txt_username.Value; Session["UserTypeID"] = users; Response.Redirect("upload.aspx"); } } catch { Label8.Text = "Incorrect User Name or Password"; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)