Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to set filename in the Save As dialog with Internet Explorer

Status
Not open for further replies.

MikoKitty

Programmer
Jul 22, 2003
5
0
0
CA
On our website, we have links that when the user clicks on, will display an XML page. I want the user to be able to click on the Save As dialog and save the XML file with the filename that I specify.

I have tried the following but it only works for Firefox but not Internet Explorer:
response.setHeader("Cache-Control", "max-age=0"); response.addHeader("Content-Disposition","inline; filename=" + file.getName());

Is it possible to overcome this problem with IE?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top