Esempio n. 1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string idlist = GetSelIDlist();

            if (idlist.Trim().Length == 0)
            {
                return;
            }
            bll.DeleteList(idlist);
            BindData();
        }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string json   = "{}";
            string action = context.Request.Form["Action"];

            if (action == "Del")                                            //删除操作
            {
                string           DelNumS = context.Request.Form["DelNumS"]; //获取批量删除的编号
                BBS.BLL.BBSUsers bll     = new BBS.BLL.BBSUsers();
                if (bll.DeleteList(DelNumS))
                {
                    json = "{'info':'删除成功'}";
                }
                else
                {
                    json = "{'info':'删除失败'}";
                }
            }
            context.Response.Write(json);
        }