发表时间:2013-10-20
获取网站根目录的方法有几种如:
Server.MapPath(Request.ServerVariables["PATH_INFO"])
Server.MapPath("/")
Server.MapPath("")//当前代码文件所在的目录路劲
Server.MapPath(".")
Server.MapPath("../")
Server.MapPath("..")
发表时间:2013-10-19
/// 下载文件操作类
public static class DownLoadFiles
{
/// 下载文件
/// 要下载的文件名称
public static void DownLoadFile(string strDownLoadFileName)
{
if (String.IsNullOrEmpty(strDownLoadFileName))return;
tr