//删除项目信息 public void DeleteProject() { NameValueCollection Params = HttpContext.Request.Form;//参数 string result = DProject.Delete(new Guid(Params["code"])) != null ? "{HasError:false,msg:'项目删除成功!'}" : "{HasError:true,msg:'项目删除失败,请稍候再试!'}"; Response.Write(result); Response.End(); }
public int Delete(Project m) { //专家删除要更新文章、专著、关于项目的编号 da.sqlUpdate(m.ProjectID, "Project"); dt.sqlUpdate(m.ProjectID, "Project"); return(de.Delete(m)); }