What’s the best way to render Navigation in MVC3? In my app the Controller has to decide what should be in the Navigation but as far as I know there’s no way to pass a Model up to the _Layout file (where the Navigation html lives) to give it this information.
Share
You can make the model available to your layout.
See also this blog post where a similar problem (“we often find ourselves needing to include the same information in every page”) is tackled.