阅读背景:

在ASP.Net MVC中处理动态重定向路由所需的建议

来源:互联网 

I have a number of create and delete partial views that I want to reuse by calling from other views. The issue is that this requires me to pass the return route and routeValues to the create and delete controller methods so that they can generate an appropriate redirect back to the original view on success. I created some extensions and helpers to keep this tidy but it seems convoluted to approach the problem this way. Have I missed something? Is there a simple way to RedirectToAction when the (redirect) controller, action and routeValues can vary?I have a number of create and delete partial vi




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

分享到: