Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.adminname = ManagerHelper.GetCurrentManager().UserName;
     if (Globals.RequestFormStr("posttype") == "sel")
     {
         base.Response.ContentType = "application/json";
         string s      = "{\"success\":\"1\",\"tips\":\"操作成功!\"}";
         int    userid = Globals.RequestFormNum("userid");
         if (Globals.RequestFormNum("issel") == 1)
         {
             NoticeHelper.DelUser(userid, this.adminname);
         }
         else
         {
             NoticeHelper.AddUser(userid, this.adminname);
         }
         base.Response.Write(s);
         base.Response.End();
     }
     if (!base.IsPostBack)
     {
         this.searchName  = Globals.RequestQueryStr("key");
         this.txtKey.Text = this.searchName;
         this.BindData(this.searchName);
     }
 }