I am migrating a web site to a new one using ASP .NET MVC2.
In the original site, master page has code-behind to check a query string parameter value. Depending on this value, code-behind dynamically modify some CSS property to hide / display master page elements.
As MVC2 has no code-behind because we are supposed to perform everything in the controllers, how should I proceed in this case ?
I see this : http://stackoverflow.com/questions/3671956/asp-net-mvc-modifying-master-file-from-a-view
It partially answers my needs but the query string processing is common to all pages. How can I move this processing in a common code section ?
Regards.