Force Download - XML problem
Thanks in advance.
I have a site which generates a user specific XML document. The user then
selects "Save to PC" which then forces the browser to show the
"save/download" dialog box. The code used is as follows:
Response.AddHeader("Content-Disposition", "attachment; filename=" &
Response.ContentType = "text/XML"
fileName is an XML document such as myXMLDoc.xml
This works perfectly for later Operating systems such as Windows XP and
Windows 2000 ( SP2 but not where SP1 is installed). The dialog box
automatically recognises the file format as XML and saves the file
Earlier Operating Systems fail to recognise the XML format and unless
manually altered, save the file as a gobbly-glock text file.
Is there a work around where I can force earlier systems to save an XML file
as an XML file without the user having to manually enter the save as
filename with the XML extension?
|All times are GMT. The time now is 02:08 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.