Stories recently tagged with 'dataanotations'

Ordering fields in ASP.NET MVC 2 templated helpers(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 1 month ago

Ever worked with the templated helpers provided by ASP.NET MVC 2? Templated helpers provide a way to automatically build UI based on a data model that is marked with attributes defined in the System.ComponentModel.DataAnnotations namespace. For example, a property in the model can be decorated with the attribute [DisplayFormat(DataFormatString = "{0:c}")], and the templated helpers will always render this field formatted as currency. If you have worked with templated helpers, you must agree: they can be useful! There’s one thing which is impossible in the current version: ordering fields. And that's what this post will accomplish. read more...

2 comments |category: |Views: 158

tags: another