Esempio n. 1
0
 /// <summary>
 /// 页面加载
 /// </summary>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (this.Request.QueryString["action"] != null)
         {
             string DelItem;
             int    resultID = 0;
             DelItem = this.Request.QueryString["ID"];
             if (!string.IsNullOrEmpty(DelItem))
             {
                 bool isSucess = int.TryParse(DelItem, out resultID);
             }
             if (SiteManagement.DeleteUser(resultID))
             {
                 this.Response.Redirect("AdminManage.aspx");
             }
             else
             {
                 this.Response.Write(BaseSystem.ShowWindow("出现异常,对不起,删除管理员操作失败!!"));
             }
         }
         else
         {
             AdminPagePageID = Convert.ToInt32(Request.QueryString["PageID"]);
             if (Request.QueryString["PageID"] == null)
             {
                 AdminPagePageID = 1;
                 PageStartIndex  = 0;
             }
             this.PageStartIndex = Convert.ToInt32(AdminPagePageID - 1);
             this.MaxAdminPages  = this.GetMaxAdminPages();
             List <SiteUser> userList = SiteManagement.GetAllUser(2);
             BaseSystem.BindProduceData(this.DataListUser, userList, PageStartIndex, PageStartIndex, PageSize);
             this.ShowBottomUrl();
         }
     }
 }