页面内打开word问题 点击链接后,选择直接打开。为什么会把word格式的在ie页面内直接打开呢?怎么能在外部用word打开?<a href ="upload/1000/任务书.doc" >点击下载</a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我不想再浏览器内打开,我想用微软的word打开 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(); xaml文件中获取Resource.resx文件的资源 咨询一个winform控件 询问ppc 模拟器是否支持vista 系统! 请教大家,如何重画tabControl的背景色? 一个win窗体问题 紧急求助!如何像msn和迅雷一样通过快捷方式显示隐藏窗口 如何多个WINFORM项目(多个EXE)共用APP.CONFIG? 请帮我看看这段代码! Socket的奇怪问题 如何在注册表中正确注册Crystal Reports for Visual Studio.NET????? 如何去除所有符号? .NET读写AVI文件的问题
后台
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();