public void DelYes(string id) { try { NoticePicInfo info = new NoticePicInfo(); string where = " 1=1 "; where = " id ='" + id + "'"; if (noticeManager.DeleteNoticePic(where) > 0) { DataRow[] dt = dtgg.Select("col0='" + id + "'"); string ggmc = dt[0]["col1"].ToString(); logManager.InsertLogRunning(uName, GetLangStr("NoticePicManager43", "删除:[") + ggmc + "]", nowIp, "1"); Notice(GetLangStr("NoticePicManager22", "信息提示"), GetLangStr("NoticePicManager27", "删除成功")); TbutQueryClick(null, null); } else { Notice(GetLangStr("NoticePicManager22", "信息提示"), GetLangStr("NoticePicManager28", "删除失败")); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("NoticePicManager.aspx-DelYes", ex.Message + ";" + ex.StackTrace, "StoreDataBind has an exception"); } }