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