Not get filename[1].rtf (ie no [1])

  • Thread starter Thread starter Guest
  • Start date Start date
Hi;

When I set:
context.Response.AddHeader("Content-Disposition", "attachment;filename=" +
item.Filename);

where Filename is dave.rtf, it will open Word with a filename of
dave[1].rtf. How do I get rid of the [1]?

--
thanks - dave
david_at_windward_dot_nethttp://www.windwardreports.com

Cubicle Wars -http://www.windwardreports.com/film.htm

I'm not sure but I think this happen when this file is already saved
in the cache (when you open this file again)
 
Hi Dave,

When you choose "open" instead of "save", IE will save the file in
"Temporary Internet Files" and use associated program to open it. To avoid
duplicate file name in the same temp directory, the surfix is always
appended (starting from index 1). If you choose "save", the file name
suggested in "Content-Disposition" header is used as default file name.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top