|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
httpresponse.contenttype help neededI 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 Matthew Speed wrote:
> I have a web page that returns to the user a csv list they then import This deals with the content-disposition header:-> 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 http://www.faqs.org/rfcs/rfc2183.html Response.AddHeader("Content-Disposition", "attachment;filename="dataexport.csv") Andrew |
|||||||||||||||||||||||