增删改查
一一一删除一一一
先添加一个一般处理程序 (ashx)
public void ProcessRequest(HttpContext context){context.Response.ContentType = \"application/json\";int id = Convert.ToInt32(context.Request.QueryString[\"id\"]);if (ProductManage.delete(id)>0){context.Response.Write(1);}else{context.Response.Write(0);}}
jq代码:
$.get(\"文件名.ashx?id=\" + id,function (data) {if (data == 1) {alert(\"删除成功\");}});