MVC 3 AdditionalMetadata Attribute with ViewBag to Render Dynamic UI
- by Steve Michelotti
A few months ago I blogged about using Model metadata to render a dynamic UI in MVC 2. The scenario in the post was that we might have a view model where the questions are conditionally displayed and therefore a dynamic UI is needed. To recap the previous post, the solution was to use a custom attribute called [QuestionId] in conjunction with an…