阅读背景:

MVC RedirectToAction在catch块中

来源:互联网 

I´m trying to redirect to an action from one controller to another if something in a try-block goes wrong. What I want to achieve is a general way of presenting a view to the user if something goes wrong in different controllers by directing all errors to an errorhandling ActionResult in my Homecontroller. This is basically what the code looks like:I´m trying to redirect to an action from one co




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

分享到: