- 最後登錄
- 2023-5-9
- 在線時間
- 7 小時
- 註冊時間
- 2009-3-11
- 閱讀權限
- 20
- 精華
- 0
- UID
- 5996658
- 帖子
- 33
- 積分
- 21 點
- 潛水值
- 11275 米
| 如果你忘記伊莉的密碼,請在登入時按右邊出現的 '找回密碼'。輸入相關資料後送出,系統就會把密碼寄到你的E-Mail。
遇到一個前端Post到後端下載檔案的問題
private void ExportToExcel(string FileType, string FileName, string ExcelContent)
{
System.Web.HttpContext.Current.Response.Clear(); //清除buffer
System.Web.HttpContext.Current.Response.ClearHeaders();
System.Web.HttpContext.Current.Response.Buffer = false;
System.Web.HttpContext.Current.Response.ContentType = FileType;
System.Web.HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8; ... |
|