I have a file, Current_Allocation.asp, which contains a recordset as source for a table and the following lines
Response.ContentType="application/vnd.ms-excel"
Response.AddHeader "content-disposition", "attachment; filename=" & strFilename
It works nicely, creating Current_Allocation.xls. I used this file as a model to create a new file( Current_Allocation_Summary.asp), with a different table and a different recordset. However, the process for cretating an Excel file now tries to create the file Current_Allocation_Summary.asp.
I don't see the strFilename being set anywhere in either of the asp files or in any of the vb or js include files.
(If I substitute the recordset and table from Current_Allocation.asp into the new file, it works fine.)
Does anyone have any idea what might be happening?
Response.ContentType="application/vnd.ms-excel"
Response.AddHeader "content-disposition", "attachment; filename=" & strFilename
It works nicely, creating Current_Allocation.xls. I used this file as a model to create a new file( Current_Allocation_Summary.asp), with a different table and a different recordset. However, the process for cretating an Excel file now tries to create the file Current_Allocation_Summary.asp.
I don't see the strFilename being set anywhere in either of the asp files or in any of the vb or js include files.
(If I substitute the recordset and table from Current_Allocation.asp into the new file, it works fine.)
Does anyone have any idea what might be happening?