Response.AddHeader("Content-Disposition", "attachment; filename=Certificate.pdf");
Response.ContentType = "text/pdf";byte[] pdfFileByte = File.ReadAllBytes(tempxmlfile);
Response.OutputStream.Write(pdfFileByte, 0, pdfFileByte.Length);
Response.Flush();用這段代碼把生成的PDF文件輸出,然后重新綁定gridview數據,可以代碼執行了,頁面沒反應...怎么解決,求高手!!!!!
- 2 回答
- 0 關注
- 858 瀏覽
添加回答
舉報
0/150
提交
取消