WiiSen

2012 迎向技術藍海《HTML5、WebGL、JQuery、.NET MVC、LINQ、Lambda、Entity Framework》
半調子資訊人,
當個資訊玩家比當個資訊專家快樂多了!


Response.Clear();
//要給的實體路徑
Response.WriteFile(physicPath + fileName);
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition", "attachment;filename=backup.Xls");
Response.Flush();
//刪除臨時文件
System.IO.File.Delete(physicPath + fileName);
Response.End();

0 意見

張貼留言

Time & Weather

Recent Posts

Comments