Esempio n. 1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string username = EyouSoft.Common.Utils.GetFormValue("t_u");
            string pwd = EyouSoft.Common.Utils.GetFormValue("t_p");

            if (string.IsNullOrEmpty(username))
            {
                this.RegisterAlertScript("请填写用户名!");
            }
            if (string.IsNullOrEmpty(pwd))
            {
                this.RegisterAlertScript("请填写密码!");
            }

            var userInfo = new Eyousoft_yhq.BLL.Login().isLoginadmin(username, pwd);

            bool isUserValid = userInfo != null ? true : false;

            if (isUserValid)
            {
                Response.Redirect("/webMaster/default.aspx");
            }
            else
            {
                this.RegisterAlertScript("用户名或密码错误!");
            }
        }
Esempio n. 2
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string username = EyouSoft.Common.Utils.GetFormValue("t_u");
            string pwd      = EyouSoft.Common.Utils.GetFormValue("t_p");

            if (string.IsNullOrEmpty(username))
            {
                this.RegisterAlertScript("请填写用户名!");
            }
            if (string.IsNullOrEmpty(pwd))
            {
                this.RegisterAlertScript("请填写密码!");
            }

            var userInfo = new Eyousoft_yhq.BLL.Login().isLoginadmin(username, pwd);


            bool isUserValid = userInfo != null ? true : false;

            if (isUserValid)
            {
                Response.Redirect("/webMaster/default.aspx");
            }
            else
            {
                this.RegisterAlertScript("用户名或密码错误!");
            }
        }
Esempio n. 3
0
        protected bool login(string UN, string PW)
        {
            var userModel = new Eyousoft_yhq.BLL.Login().isLoginadmin(UN, PW);

            return(userModel == null ? false : true);
        }
Esempio n. 4
0
        protected bool login(string UN, string PW)
        {
            var userModel = new Eyousoft_yhq.BLL.Login().isLoginadmin(UN, PW);

            return userModel == null ? false : true;
        }