Hi,
I have code that works to create an Excel file of data presented on my .asp page.
The code automatically downloads the file when I access the page. How do it get it to work only when a link is clicked.
The code I am using is
ThanksCode:<% Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "filename=excelfile.xls" %>



Reply With Quote

Bookmarks