예제 #1
0
        public DataSet CheckUserLogin()
        {
            try
            {
                if (Session["OrgId"] == null)
                {
                    Session["OrgId"] = Convert.ToInt32(DDL_SelectCollege.SelectedValue);
                }
                EWA_Login objEWA = new EWA_Login();
                BL_Login  objBL  = new BL_Login();

                string UserType = "0";// DDL_SelectAuthority.SelectedItem.ToString();
                objEWA.UserType = UserType;
                objEWA.UserName = txtUserName.Text.Trim().ToString();
                objEWA.Password = txtPassword.Text.Trim().ToString();
                objEWA.OrgId    = Convert.ToString(DDL_SelectCollege.SelectedValue);

                DataSet ds = objBL.CheckValidUser_BL(objEWA);
                return(ds);
            }
            catch (Exception exp)
            {
                // GeneralErr(exp.Message.ToString());
                return(null);
            }
        }
예제 #2
0
        private DataSet CheckUserLogin()
        {
            DataSet ds = null;

            try
            {
                EWA_Login objEWA = new EWA_Login();
                BL_Login  objBL  = new BL_Login();

                objEWA.UserName = txtUserName.Text.Trim().ToString();
                objEWA.Password = TxtPassword.Text.Trim().ToString();
                objEWA.UserType = "SuperAdmin";
                ds = objBL.CheckValidUser_BL(objEWA);
            }
            catch (Exception exp)
            {
                // Response.Redirect("~/CMSHome.aspx");
                //throw exp;
            }
            return(ds);
        }