中文名文件的下载问题 中文名文件的下载问题好像中文了就下载不了,能给个解决办法吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 到最后也就是个路径问题。你单步到那一步。看看这个路径是什么中文也没问题应该:编码试下Escape试试 string path = Server.MapPath("~/") + obj.URL;Response.AppendHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(obj.Name, System.Text.Encoding.GetEncoding("utf-8")) + "." + obj.AttachmentExt);Response.ContentType = "application/octet-stream";Response.WriteFile("" + path + "");Response.End(); aspnetpager分页问题 这个查询语句不对吗? .NET Tab菜单 问题 终于不用为用户控件和样式表中的相对路径(Asp.net)而烦恼 C#菜鸟问题 请问asp.net最常用的部署方法及公具? 请问如何判断treeview中的checkbox里的值是否被选中呀 如何实现呀 谢谢了 急!!!vs2008怎么搭建web项目三层架构? 請求高人指點迷津﹒﹒﹒﹒狂等﹒﹒﹒ 请大家讨论ASP。NET代码转移问题!(100分) 使用showModalDialog显示一个子窗体后如何局部刷新父窗体 AssemblyFileVersion属性如果删除了会怎么样?
Response.AppendHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(obj.Name, System.Text.Encoding.GetEncoding("utf-8")) + "." + obj.AttachmentExt);
Response.ContentType = "application/octet-stream";
Response.WriteFile("" + path + "");
Response.End();