padders01
12-01-2015, 02:48 PM
Hi,
I have some VB Script that works fine on a VB page but when I try to make it work on Javascript page it doesn't work. I have tried to wrap the code in VB tags but doesn't work. I need to keep the page coded in Javascript. The webpage is written in .asp
Code
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=excelfile.xls"
%>
Thanks
I have some VB Script that works fine on a VB page but when I try to make it work on Javascript page it doesn't work. I have tried to wrap the code in VB tags but doesn't work. I need to keep the page coded in Javascript. The webpage is written in .asp
Code
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename=excelfile.xls"
%>
Thanks