Exemplo n.º 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");
                }
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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 = "";
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginAdmin.IsLoginAdmin();
 }