阅读背景:

将视图渲染为字符串,然后重定向导致异常

来源:互联网 

So here's the issue: I'm building e-mails to be sent by my application by rendering full view pages to strings and sending them. This works without any problem so long as I'm not redirecting to another URL on the site afterwards. Whenever I try, I get "System.Web.HttpException: Cannot redirect after HTTP headers have been sent."So here's the issue: I'm building e-mails to be




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: