Files
KON/module/csv_download.asp
2026-08-07 12:53:18 +09:00

12 lines
439 B
Plaintext

<%
Response.Expires = 0
Response.ContentType = "application/vnd.ms-excel"
Response.ContentType = "application/unkown"
Response.ContentType = "text/csv"
Response.Buffer = TRUE
Response.AddHeader "Content-Disposition","attachment; filename="&request("csvName")&"_("&Date()&").csv"
Response.BinaryWrite(ChrB(239) & ChrB(187) & ChrB(191))
Server.ScriptTimeOut = 60 * 20
response.write request("csvText")
%>