//判断绝对路径
//filepath是文件路径
if(System.IO.File.Exists(filepath))
{
System.Web.HttpContext.Current.Response.Write("");
}
else
{
System.Web.HttpContext.Current.Response.Write("");
}
//判断相对路径
if(System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(filepath)))
{
System.Web.HttpContext.Current.Response.Write("");
}
else
{
System.Web.HttpContext.Current.Response.Write("");
}