如何调用IE自带的下载工具?如何将它多线程化?
我对这个不了解,能不能说得简单一些?谢谢

解决方案 »

  1.   

      /*WriteFile实现下载    FileInfo fileInfo = new FileInfo(Server.MapPath(path)); //要下载文件的路径
        Response.Clear();
        Response.ClearContent();
        Response.ClearHeaders();
        Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(name)); 名字
        Response.AddHeader("Content-Length", fileInfo.Length.ToString());
        Response.AddHeader("Content-Transfer-Encoding", "binary");
        Response.ContentType = "application/octet-stream";
        Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
        Response.WriteFile(fileInfo.FullName);
        Response.Flush();
        Response.End();
        */