I am struggling with MVC – which I love – and it’s features.
I am trying to load a menu in the Application_Start event.
I want to load some links with the correct url (controllerName/actionName) but I can’t use the Url.Action or other methods to build the path.
Can anybody help me?
Why would you want to build your menu in the application_start? Is it for some kind of caching? Anyway here goes..
I would rather recommend doing a RenderAction on your masterpage what points to a action that is cached, or something like that.