protected void btnLogin_Click(object sender, EventArgs e) { SqlDataReader dr = AdminDb.GetAdminLogin(tbEmail.Text, tbPassword.Text); if (dr.Read()) { Session["UserID"] = dr["UserID"].ToString(); Session["UserName"] = dr["FullName"].ToString(); Response.Redirect("Dashboard.aspx"); } else { tbEmail.Text = ""; tbPassword.Text = ""; pnlLoginErrorMessage.Visible = true; } }