链接有问题的话那flashget也就下载不了了,可是用flashget没问题,用ie自带的下载功能就不行(奇怪的是有两个可以,另外3个不行).

解决方案 »

  1.   

    //用用这个函数把,在 Ie中,有些文件可用你的方法,点击后会弹出下载对话框,有些后缀是不行的
    public  void Download(string location)
    {
    //string location= @"c:\Inetpub\wwwroot\AppKJXM\canup\countrytjbb\tjbbs54.dbf";
    // Response.Redirect(@"WebPublic\Modules\FileManager\Download.aspx?File=" + location);
    System.IO.FileInfo file = new System.IO.FileInfo(location); // clear the current output content from the buffer
    Response.Clear();
    // add the header that specifies the default filename for the Download/SaveAs dialog
    Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
    // add the header that specifies the file size, so that the browser
    // can show the download progress
    Response.AddHeader("Content-Length", file.Length.ToString());
    // specify that the response is a stream that cannot be read by the
    // client and must be downloaded
    Response.ContentType = "application/octet-stream";
    // send the file stream to the client
    Response.WriteFile(file.FullName);
    // stop the execution of this page
    Response.End();
    }
      

  2.   

    我手动修改地址栏,去下一个英文名的rar文件,也下载不了(这个文件已拷贝到了那个目录下了),能下载的那两个文件是中文名的
      

  3.   

    不是中文的问题,而是因为不能下载的文件名中有空格!!!!!!
    简单的例子:
    string st="love me.mp3";
    Response.Write("<a href="+st+">love me.mp3</a>");
    这样浏览器只能找到love?当然不能下载了,如果改为loveme.mp3问题就没有了,解决方法
    Response.Write("<a href="+"'"+st+"'"+">love me.mp3</a>");
    这样a指的就是整个文件名了,我想你的问题大概就是这种类型的^_^
    我是新手,QQ:298311970
    有兴趣的加我
      

  4.   

    联接是这样的,没有空格阿。http://localhost/devse/promanager/1998/测试/测试.rar