In ASP.NET MVC 2 - How do I get Route Values into my navigation controller so I can highlight the current link?
问题 I'm trying to get the current Route into my navigation controller so I can run comparisons as the navigation menu data is populated. My Links object is like this: public class StreamNavLinks { public string Text { get; set; } public RouteValueDictionary RouteValues { get; set; } public bool IsSelected { get; set; } } In the master page, I'm trying to pass the current route to the nav controller like this: <% Html.RenderAction( "MenuOfStreamEntries", // action "Nav", // controller new { //