protected void Button2_Click(object sender, EventArgs e)
{
FileInfo fi = new FileInfo(Server.MapPath(".") + @"\kk.xls");
if (fi.Exists)
{
fi.Delete();
Response.Write("文件已经删除");
}
else
{
Response.Write("文件没有找到");
}
}