Response.ContentType = "application/octet-stream";
        Response.AppendHeader( "Content-Disposition", "attachment;FileName=文件名" );
        Response.BinaryWrite( ( byte [] )文件内容 );

解决方案 »

  1.   

    Response.Redirect("http://www.xxx.com/1.txt"); 
      

  2.   

    forgot(忘记forgot2000) 老兄的 方法只是在本页打开了,如果是一个非文本或图片的文件那种URL指向就是下载,但是如果是以上2种就在本页打开了,没有起到下载的功能
      

  3.   

    使用
    http://blog.csdn.net/hertcloud/archive/2007/03/22/1537371.aspx
    上面提供的函数 即可.
      

  4.   

    楼主应该描述详细点。
    ------------------------------------------------------
    Response.ContentType = "application/octet-stream";
    Response.AppendHeader( "Content-Disposition", "attachment;FileName=文件名" );
    Response.BinaryWrite( ( byte [] )文件内容 );这个兄弟的打印方法没问题,无论什么文件类型都可搞定了.
      

  5.   

    以查询的方式,打开供应商服务器上的指定的某个JPG格式图片并在imagez显示,当点 button按钮时,可以把它保存到本地的机子上的某个盘里