Ask a Question related to ASP.NET General, Design and Development.
-
PJS #1
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=" &
fileName)
Response.ContentType = "text/XML"
Response.WriteFile(fileName)
Response.End()
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
correctly.
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?
With Thanks,
Peter
PJS Guest
-
How to force File Download
A Web server that uses the Content-disposition: attachment HTTP header to force a file download should prompt the user to open or save the file;... -
Force Download
I've been trying to get the Bud force download (from Tom Much) to work with data pulled from a recordset ... however for some reason I cannot get it... -
Force download pdf
Hi I am trying to work out how download a pdf form a link in my Flash movie (actually download it not open it up) I have an extension to do this in... -
Force download to a specific directory
FX Digital ... www.fx-digital.com wrote: Thankfully you can't do that. Can you imagine the problems that would cause if anyone had that much... -
Force File Download XML Problem
Below is some code I posted yesterday. Does it help? Ken MVP Imports System.io Public Class writexmlp Inherits System.Web.UI.Page



Reply With Quote

