예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!UserRightImpl.CheckRightAdminnistrator().UserEdit)
            {
                Response.Redirect(Utility.UrlRoot + Config.PathNotRight, false);
                return;
            }

            if (!IsPostBack)
            {
                lblMsg.Text = "";

                //BindDDL();

                if (Request.QueryString["ID"] != null && Request.QueryString["ID"] != string.Empty)
                {
                    EditData();
                }
                else
                {
                    Response.Redirect("contact_manager.aspx");
                }
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!UserRightImpl.CheckRightAdminnistrator().UserRead)
            {
                Response.Redirect(Utility.UrlRoot + Config.PathNotRight, false);
                return;
            }

            if (!IsPostBack)
            {
                BindGird();
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!IsPostBack)
            {
                AdminInfo objAdmin = (AdminInfo)Session[Constant.SessionNameAccountAdmin];
                if (objAdmin == null)
                {
                    Response.Redirect(Utility.UrlRoot + Config.LoginAdmin, false);
                    return;
                }
                txtUsername.Text     = objAdmin.Username;
                txtUsername.ReadOnly = true;
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!UserRightImpl.CheckRightAdminnistrator().UserEdit)
            {
                Response.Redirect(Utility.UrlRoot + Config.PathNotRight, false);
                return;
            }

            if (!IsPostBack)
            {
                txtUsername.Text = "";
                txtPass.Text     = "";

                if (Request.QueryString["ID"] != null && Request.QueryString["ID"] != string.Empty)
                {
                    if (Utility.IsInteger(Request.QueryString["ID"]))
                    {
                        _adminID = int.Parse(Request.QueryString["ID"]);
                        //_isEdit = true;
                        EditData();
                        RequiredFieldValidator2.Enabled = false;
                        RequiredFieldValidator3.Enabled = false;
                    }
                }
            }

            if (Request.QueryString["ID"] != null && Request.QueryString["ID"] != string.Empty)
            {
                if (Utility.IsInteger(Request.QueryString["ID"]))
                {
                    _adminID = int.Parse(Request.QueryString["ID"]);
                    _isEdit  = true;
                    //EditData();
                }
            }

            lblMsg.Text = "";
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!UserRightImpl.CheckRightAdminnistrator().UserEdit)
            {
                Response.Redirect(Utility.UrlRoot + Config.PathNotRight, false);
                return;
            }

            if (Page.Request["ID"] == null)
            {
            }
            else
            {
                _adminID = int.Parse(Page.Request["ID"]);
            }
            if (!IsPostBack)
            {
                BindDropDownList();
                BindGrid(0);
            }
        }
예제 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginAdmin.IsLoginAdmin();

            if (!UserRightImpl.CheckRightAdminnistrator().UserEdit)
            {
                Response.Redirect(Utility.UrlRoot + Config.PathNotRight, false);
                return;
            }

            if (!IsPostBack)
            {
                lblMsg.Text = "";

                IMG.Attributes.Add("onclick", "javascript:return ShowPupup();");
                BT_IMG.Attributes.Add("onclick", "javascript:return ShowPupup();");
                //BindDDL();

                if (Request.QueryString["ID"] != null && Request.QueryString["ID"] != string.Empty)
                {
                    EditData();
                }
            }
        }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginAdmin.IsLoginAdmin();
 }