引用命名空间 using System.IO;
FileInfo myfile = new FileInfo(Server.MapPath("data1.xml"));
if (myfile.Exists)
{
Response.Write("<script language=javascript>alert('文件已存在!');</script>");
}
引用命名空间 using System.IO;
FileInfo myfile = new FileInfo(Server.MapPath("data1.xml"));
if (myfile.Exists)
{
Response.Write("<script language=javascript>alert('文件已存在!');</script>");
}