public JsonResult DeleteJson(List <int> ids) { int _total = ids.Count(); Response _resp = new DAL.Response(); _resp = articleManage.Delete(ids); if (_resp.Code == 1) { _resp.Code = 2; _resp.Message = "共提交删除" + _total + "篇文章,实际删除" + _resp.Data + "篇文章。"; } return(Json(_resp)); }
void InitInfo() { articleId = CECRequest.GetQueryInt("articleid", 0); action = CECRequest.GetQueryString("action"); categoryId = CECRequest.GetQueryInt("categoryid", 0); if (action.ToLower() == "del") { ArticleManage.Delete(articleId); Response.Redirect("articlelist.aspx"); return; } this.PublishDate.SelectedDate = DateTime.Now; this.ddlcategoryList.BuildTree(ArticleCategoryManage.GetArticleCategoryTable(), "CategoryName", "CategoryId"); this.ddlcategoryList.SelectedValue = categoryId.ToString(); }