DRY-ing out the MVC 2 Templated Helpers

In my MSDN article  Using Templated Helpers to Display Data, I show how they provide a very productive means of building a UI for data sets. The code below shows a typical use of the Display and Label helpers.<span style=”font-weight:bold;”> <%= Html.Label(“Name”) %> :</span> <%= Html.Display(“Name”) %> <br/><span style=”font-weight:bold;”> <%= Html.LabelFor(Pals => Pals.ID)%> :</span> <%=…

0

Using DataAnnotations in MVC 2 – Catching up to Dynamic Data

  DataAnnotations help you write robust validation and prevent the type of annoying error message shown above. Form submittal failure when a field doesn’t validate can be very frustrating –  especially when there is no indication of the problematic property or the constraint violation. I happened to get the Outlook error above when I attempted…

0