void delete_Click(Object sender,EventArgs e) {
string sPath = Server.MapPath("../"+path.Text+"");
try {
Directory.Delete(sPath, true);
}
catch (Exception exc) {
Label1.Text = "删除目录时出错<b>" +path.Text+ "</b><br>"+ exc.ToString();
}
Label1.Text="目录删除成功!";
}
string sPath = Server.MapPath("../"+path.Text+"");
try {
Directory.Delete(sPath, true);
}
catch (Exception exc) {
Label1.Text = "删除目录时出错<b>" +path.Text+ "</b><br>"+ exc.ToString();
}
Label1.Text="目录删除成功!";
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货