Ordering fields in ASP.NET MVC 2 templated helpers(blog.maartenballiauw.be)
submitted by
maartenba(5845) 2 years, 4 months 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.
|category: MVC
|Views: 159
tags:
ASPNETMVC dataanotations ASPNET MVC another
Everyones tags:
Your Tags: