protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string FullPath1 = e.Values["FullPath"].ToString();
if (System.IO.File.Exists(FullPath1))
{
System.IO.File.Delete(FullPath1);
}
}FullPath为文件全路径的字段。
{
string FullPath1 = e.Values["FullPath"].ToString();
if (System.IO.File.Exists(FullPath1))
{
System.IO.File.Delete(FullPath1);
}
}FullPath为文件全路径的字段。
解决方案 »
- 如何实现当session timeout时,web页面点击button时,自动弹出窗口,要求重新登录,但当前页面不能刷新,而避免已经输入的丢失数据?
- RTX二次开发
- 用回车键登录页面不跳转 点击却跳转
- 给力求助,如何动态创建一个datatable,并为datatable增加一行,然后赋值,然后将其绑定在repeater控件中
- asp.net mvc中输出模板的原理是什么
- AJax在datalist上弹出提示层没反应,急,就这么多分了全给了
- 急!请问大家,怎么把sql2005中有xml数据类型的表显示在VS2005中显示?谢谢大家,帮帮忙啊!
- dataset中内容可以导入sqlserver中么??
- 请问那里有visual basic.net项目开发与实践这本书的带的光盘和书那里有下载了。
- 帮助,请教一个ASP的四级联动的问题
- SVN配置
- 怎样在一个Gridview里面添加两个select?
string FullPath1 = MapPath(e.Values["FullPath"].ToString());
string FullPath1 = MapPath("~/目录名1/目录名2/.../文件名");