G
guillermojco
Hi,
I've got an ASP.NET page that returns XLS, DOC, PDF and other files
from binary fields in a database.
The problem is that MS-Excel 2007 shows a security warning when trying
to open the file because its name is page.ASPX instead of page.XLS
(the file opens properly when this warning is accepted by the user).
I thing the problem would solve if I can change the response URL from
"page.ASPX" to "page.XLS"
I don't want to use redirection because I don't have a real XLS file
but a byte array.
I've been unable to find this in the "Response" object documentation,
I wonder if it is possible.
Also, I don't have this problem with DOC or PDF files, they're opened
properly without any warnings.
Thanks!
Guillermo.
I've got an ASP.NET page that returns XLS, DOC, PDF and other files
from binary fields in a database.
The problem is that MS-Excel 2007 shows a security warning when trying
to open the file because its name is page.ASPX instead of page.XLS
(the file opens properly when this warning is accepted by the user).
I thing the problem would solve if I can change the response URL from
"page.ASPX" to "page.XLS"
I don't want to use redirection because I don't have a real XLS file
but a byte array.
I've been unable to find this in the "Response" object documentation,
I wonder if it is possible.
Also, I don't have this problem with DOC or PDF files, they're opened
properly without any warnings.
Thanks!
Guillermo.