【发布时间】:2018-03-21 20:17:55
【问题描述】:
我有下载按钮,下载后我想重定向到另一个页面。
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=downloadfile.pdf");
Response.TransmitFile(Server.MapPath("downloadfile.pdf"));
Response.AddHeader("Refresh", "3;URL=redirectpage");
这是下载文件的代码,现在下载文件后没有重定向到我要重定向的页面。
【问题讨论】:
标签: c# response.redirect