padders01
11-27-2015, 11:29 AM
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
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=excelfile.xls"
%>
Thanks
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
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=excelfile.xls"
%>
Thanks