Tag: Development

Community

Global View Data in MVC

(Kevin Rohrbaugh) ASP.NET MVC makes it easy to pass data from a controller to a view, using the ViewData dictionary or, in the case of strongly-typed views, passing the model class directly to it. There are scenarios, however, where you might want certain pieces of global data passed to your views a