Ejemplo n.º 1
0
    public void Login()
    {
        Object AdminLogin = new Object();

        AdminLogin.Admin_Email    = TxtMail.Text;
        AdminLogin.Admin_Password = TxtPassword.Text;
        DataTable dt = BSLAYER.LoginAdmin(AdminLogin);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            Response.Redirect("Admin-Login.aspx");
        }
        else
        {
            Session["Name"] = dt.Rows[0]["Admin_Name"].ToString();
            Response.Redirect("AddItem.aspx");
        }
    }