protected void delete(object sender, EventArgs e) { string ids = Request["gids"]; //单个删除 if (ids == null) { int gid = Int32.Parse(Request["GoodsId"]); if (goodsService.Delete(gid)) { Response.Write(true); Response.End(); } else { Response.Write(false); Response.End(); } } ///批量删除 else { if (goodsService.DeleteList(ids)) { Response.Write(true); Response.End(); } else { Response.Write(false); Response.End(); } } }