string Path = Request.PhysicalApplicationPath + "App_Data" + "\\" + "aaa.mdb"; FileInfo info = new FileInfo( Path ); if( info.Exists ) { Response.Clear(); Response.ClearHeaders(); Response.Buffer = false; Response.ContentType = "Application/octet-stream"; Response.AddHeader( "Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode( info.FullName, Encoding.UTF8 ) ); Response.WriteFile( info.FullName ); Response.Flush(); Response.End(); } 转载于:https://www.cnblogs.com/Magicam/archive/2008/07/11/1241147.html