删除数据库相对应的图片
protected void Del(object sender, CommandEventArgs e)
{
SqlConnection mycon = new SqlConnection(ConfigurationManager.AppSettings["Connstr"]);
string SQL = "select ImageUrl from gonggaoxinxi where zhanhui_id='" + e.CommandName + "'";
Page.Response.Redirect("newsManage.aspx");
}
实现不懂,被这问题搞了好久,哪个好人能贴出完整的代码来吗..
我要完整的代码,因为我也知道用File.Delete
(假设路径是当前目录中:image/***)