By tag: ViewData
Ban this user: Options
Please provide a reason for deleting this story
Jeffrey Palermo postes about replacing the ViewData on the MVC framework with a generic container called SmartBag. I made a small modification of the code to deal with the 20% of cases stated on the post. Here is the code with those changes.
Want to use strongly typed ViewData in your view without a code-behind file? It isn't quite as straight-forward as you'd think. Read on for the answer and a quick lesson in how the CLR interacts with generics.