admin管理员组文章数量:1402958
I’m looking to implement something similar to the Html.Action helper, but instead of using the controller and action names, I want to provide the RouteName and route parameters.
In our project, the RouteTable is very large (around 7500 routes), and every call to Url.Action or Html.Action takes around 600ms just to find the correct route in the RouteTable.
We’ve already moved from Url.Action to Url.RouteUrl to avoid the overhead of querying the entire RouteTable, but now I need to know how to do something similar with Html.Action.
Is there a way to retrieve the action’s HTML using the RouteName directly, without having to go through the entire RouteTable lookup for every request?
Thanks for your help!
本文标签:
版权声明:本文标题:c# - How to implement an Html.Action helper using only the RouteName and parameters without querying the entire RouteTable? - St 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744641872a2617171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论