摘要:網頁轉Excel
記錄,將來有不知道有沒有機會用到。
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-disposition", "attachment; filename=excel.csv")
Response.Charset = "Big5"
Response.ContentEncoding = System.Text.Encoding.GetEncoding("BIG5")
Response.Clear()
Response.Write("1,2,3")
Response.End()