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

httpresponse.contenttype help needed

P: n/a
I have a web page that returns to the user a csv list they then import
into another program. When they do so they are correctly told that
the server is attempting to send data of type text/csv and gives them
the option to save it. Unfortunately, the suggested file name is
dataexport.aspx, the name of my VB.Net page. Is there a way I can
make it so that the dialog box autofills as dataexport.csv instead?

TIA
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Matthew,

Can you show us something more how you do this.

Cor
Nov 21 '05 #2

P: n/a
Matthew Speed wrote:
I have a web page that returns to the user a csv list they then import
into another program. When they do so they are correctly told that
the server is attempting to send data of type text/csv and gives them
the option to save it. Unfortunately, the suggested file name is
dataexport.aspx, the name of my VB.Net page. Is there a way I can
make it so that the dialog box autofills as dataexport.csv instead?

TIA


This deals with the content-disposition header:-
http://www.faqs.org/rfcs/rfc2183.html

Response.AddHeader("Content-Disposition",
"attachment;filename="dataexport.csv")

Andrew
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.