由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - [合集] 问一个Response.WriteFile的问题
相关主题
问一个Response.WriteFile的问题[合集] 瞧睢Gates这些年干的事!
[合集] c#会取代java么?a question about C++.net class library
[合集] dotnet真的没有市场吗?Re: [转载] 怎么改?
[合集] ajax.net的问题which one is the WizardBar?
[合集] 你们最不喜欢.net的什么?how to download a https file
[合集] 我不知道.net里大家什么用得做多C#的new在method declaration里有和没有有啥区别么
[合集] .net framework class library的source open嘛?一个问题
[合集] 感觉c#真是无聊人发明的包子题: Implement GetFullPathOfIsolatedFile
相关话题的讨论汇总
话题: 问题话题: ie话题: rename话题: 自动
进入DotNet版参与讨论
1 (共1页)
l*s
发帖数: 783
1
☆─────────────────────────────────────☆
rodney (gotoAndPlay(0)) 于 (Mon Feb 12 15:01:35 2007) 提到:
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
strFileName);
Response.ContentType = "application/octet-stream";
Response.WriteFile(strFileName);
Response.End();
执行没有问题。唯一的问题是,IE总要自动rename这个save as...dialog,给文件名第一
个.之前自动加上[1]。比如文件原名download.mp3,就会变成download[1].mp3.
Firefox就不会这么干。
这可能和.NET无关。怎么避免IE自动rename?应该是
1 (共1页)
进入DotNet版参与讨论
相关主题
包子题: Implement GetFullPathOfIsolatedFile[合集] 你们最不喜欢.net的什么?
Windows filesystem bug[合集] 我不知道.net里大家什么用得做多
anyone tried vs2010 beta2?[合集] .net framework class library的source open嘛?
How to use openFileDialog() to save a binary file in .net C++[合集] 感觉c#真是无聊人发明的
问一个Response.WriteFile的问题[合集] 瞧睢Gates这些年干的事!
[合集] c#会取代java么?a question about C++.net class library
[合集] dotnet真的没有市场吗?Re: [转载] 怎么改?
[合集] ajax.net的问题which one is the WizardBar?
相关话题的讨论汇总
话题: 问题话题: ie话题: rename话题: 自动