本帖最后由 tx977952124 于 2011-01-21 12:47:17 编辑

解决方案 »

  1.   

    我要获得 用户保存word时的路劲(后面要用),但是怎么弹出类似于winform里面哪个SaveFileDialog 对话框呢?
      

  2.   

    string path = Server.MapPath("~/") + "";  
    Response.AppendHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(Name, System.Text.Encoding.GetEncoding("utf-8")) + "." + AttachmentExt);  
    Response.ContentType = "application/octet-stream";  
    Response.WriteFile("" + path + "");  
    Response.End  
     
      

  3.   

    Name 和 AttachmentExt 是什么变量?