J
Jeff Cooper
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,
Jeff
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,
Jeff