点击链接后,选择直接打开。为什么会把word格式的在ie页面内直接打开呢?
怎么能在外部用word打开?<a href ="upload/1000/任务书.doc" >点击下载</a>

解决方案 »

  1.   

    我不想再浏览器内打开,我想用微软的word打开
      

  2.   

    c#:
    后台
                string path = "F:\\aa.doc";
                System.IO.FileInfo file = new System.IO.FileInfo(path);
                Response.Clear();
                Response.AddHeader("Content-Disposition", "attachment;   filename=" + HttpUtility.UrlEncode(file.Name));            Response.AddHeader("Content-Length", file.Length.ToString());
                Response.ContentType = "application/octet-stream";
                Response.WriteFile(file.FullName);
                Response.End();