By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,825 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,825 IT Pros & Developers. It's quick & easy.

link to open txt file in notepad

P: n/a
a simple aspx page just needs to send a particular .txt file to stream so
that it opens up in Notepad on client side. Using ContentType = "text/plain"
it still opens in IE browser as a html file, what trick is needed?
May 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> a simple aspx page just needs to send a particular .txt file to stream so
that it opens up in Notepad on client side. Using ContentType = "text/plain"
it still opens in IE browser as a html file, what trick is needed?


Do you have the http-header Content-Disposition=attachment ?

Response.AppendHeader("Content-Disposition", "attachment");

or even

Response.AppendHeader("Content-Disposition",
"attachment;filename=file.txt");

Hans Kesting
May 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.