Header background image for AlwaysMoveForward.com

Blog entries for Wednesday, 11 February 2009

Software

My MVC Experiment Part 7 - Fun with ViewData

Okay so I'm actually going into my MVC details now.When I first started using ASP.Net MVC I dumped everything into the ViewData dictionary using ViewData[""].  I had noticed the ModelContainer class that is created for you when you first create an MVC project, but honestly why bother?  You can just dump whatever you want into the ViewData at will so why create a bunch of properties on a class?Uhm ok, but lets take the opposite approach.  Why NOT create a bunch of properties on the class.  My opi
By Arthur Correa • 0 Comments
Continue Reading
  • 1