如何更改地址栏内容?现在打开的是数据库中的Word文件,可是另存为时是WebFrom1.doc,如何才能是此文件名呢?有FileName字段。 how are you downloading the file? if you are using Response.BinaryWrite(), try to add a header before that:Response.AddHeader("Content-Disposition", "attachment; filename=" + PutYourFileNameStringHere); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在PutYourFileNameStringHere中写入你好.doc时中文出现乱码? 不能加括号Response.AddHeader "Content-Disposition", "attachment; filename="& FileName; 你那个是vb.net吧我这是C# 对于乱码的问题:String encodefilename=HttpUtility.UrlEncode(System.Text.UTF8Encoding.UTF8.GetBytes(filename));然后“FileName”使用encodefilename就可以了。 HttpContext对象属性赋值问题 框架中怎样使用ajax response.write CS页面protected变量赋值取值问题 sql 语句 查询第二行的数据 今天终于和公司说辞职了。一下子感觉轻松多了! 未将对象引用设置到对象的实例问题? ASP.Net中的登陆验证是如何实现的呀? 求大神帮看下这段委托链的问题... 如何从xml文件中读取数据存入一个dataset?在线等待! IIS 时间格式 怎么设置为 24时计时法?? 对于下面的程序我该怎么修改呢? 怎样动态生成一组textbox,再读出输入的数据,我试了一段程序但不行。
Response.AddHeader "Content-Disposition", "attachment; filename="& FileName;
我这是C#
String encodefilename=HttpUtility.UrlEncode(System.Text.UTF8Encoding.UTF8.GetBytes(filename));
然后“FileName”使用encodefilename就可以了。