Similar to the post below, can you advise what I can do so "aspx" isn't
appended when saving a file in Netscape 7?
Big thanks in advance for tolerating a Netscape-related question - I'm
posting here as I'm all Microsoft in terms of platform and development, and
am hopeful someone in this group who does cross-browser compatible sites has
solved this...
Steve E.
"Jeff Cooper" <js******@compudude.com> wrote in message
news:Wz*****************@newsread2.news.atl.earthl ink.net...
Hey there,
I have a download page which I (finally) got to work ok with IE. But, when downloading in Netscape, it appends ".aspx" to the filename. Below is the
code from the Form_Load event of download.aspx:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment;
filename=""myfile.tab""")
Response.Write(S)
Response.End()
When linking to the page in Netscape 7, the save dialog appears, but the
default filename is now "myfile.tab.aspx", and the type is "*.aspx".
Originally, I had the ContentType set to text/plain, which also worked ok in IE, but it simply opened in the netscape's browser window. The
octect-stream type set above was my first attempt to fix the problem.
Any thoughts on how to properly set the mime type to Netscape will download a tab file without the extra aspx extension?
Thanks,