protected void EBtnBatchDelete_Click(object sender, EventArgs e)
        {
            string strItemId = this.EgvUser.SelectList.ToString();

            this.CheckSelectListIsEmpty(strItemId, "<li>对不起,您还没选择要删除的会员!</li>");
            if (ApiData.IsAPiEnable())
            {
                string str2 = "";
                if (!DataValidator.IsValidId(strItemId))
                {
                    AdminPage.WriteErrMsg("<li>删除失败!</li>");
                }
                foreach (string str3 in strItemId.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
                {
                    UserInfo userById = Users.GetUserById(DataConverter.CLng(str3));
                    str2 = str2 + userById.UserName + ",";
                }
                string str4 = ApiFunction.DeleteUsers(str2.Remove(str2.Length - 1));
                if (str4 != "true")
                {
                    AdminPage.WriteErrMsg("<li>" + str4 + "</li><br><li>删除失败!</li>");
                }
            }
            if (Users.Delete(strItemId))
            {
                BasePage.ResponseRedirect("UserManage.aspx");
            }
            else
            {
                AdminPage.WriteErrMsg("<li>删除失败!</li>");
            }
        }
 protected void BtnDelete_Click(object sender, EventArgs e)
 {
     if (ApiData.IsAPiEnable())
     {
         if (!DataValidator.IsValidId(this.userId.ToString()))
         {
             AdminPage.WriteErrMsg("<li>删除失败!</li>");
         }
         string str2 = ApiFunction.DeleteUsers(Users.GetUserById(this.userId).UserName);
         if (str2 != "true")
         {
             AdminPage.WriteErrMsg("<li>" + str2 + "</li><br><li>删除失败!</li>");
         }
     }
     if (Users.Delete(this.userId.ToString()))
     {
         BasePage.ResponseRedirect("UserManage.aspx");
     }
     else
     {
         AdminPage.WriteErrMsg("<li>删除会员失败!</li>");
     }
 }