It\'s a simple question. How did stackoverflow do their menu in Asp.net MVC, with highlight on what page we are on.
There is probably no MVC special magic that makes this happen.
I'm sure:
if( HttpContext.Current.Request.Path == "some some menu url" )
or
if( ViewContext_Or_ControllerContext.RouteData.Values["controller"] == "some value")
is used someplace.
You could put this code in about three different locations ( View ( .aspx ), ViewModel, Custom HtmlHelper ) and they would all require that same bit of code.