private void Delete(HttpContext context) { int value = base.GetIntParam(context, "consultationId", false).Value; if (ProductCommentHelper.DeleteProductConsultation(value)) { base.ReturnSuccessResult(context, "成功删除了选择的商品咨询!", 0, true); return; } throw new HidistroAshxException("删除商品咨询失败!"); }
private void grdConsultation_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int consultationId = (int)this.grdConsultation.DataKeys[e.RowIndex].Value; if (ProductCommentHelper.DeleteProductConsultation(consultationId) > 0) { this.ShowMsg("成功删除了选择的商品咨询", true); this.BinddlstProductConsultation(); return; } this.ShowMsg("删除商品咨询失败", false); }
private void grdConsultation_RowDeleting(object sender, GridViewDeleteEventArgs e) { int consultationId = (int)grdConsultation.DataKeys[e.RowIndex].Value; if (ProductCommentHelper.DeleteProductConsultation(consultationId) > 0) { ShowMsg("成功删除了选择的商品咨询", true); BindConsultation(); } else { ShowMsg("删除商品咨询失败", false); } }