5
Shouts

Templated Helpers and Custom Model Binders in ASP.NET MVC 2

published 1156 days, 7 hours, 44 minutes ago posted by gshacklesgshackles 1156 days, 17 hours, 50 minutes ago
Thursday, March 25, 2010 12:24:40 PM GMT Thursday, March 25, 2010 2:18:13 AM GMT

One of the really cool new features in ASP .NET MVC 2 is templated helpers. The basic idea is that you can define a template for either displaying or editing a particular data type, and it will be used by default when displaying or editing that type. This allows you to define the behavior once, and then you don’t need to worry about it in every view you write thereafter. In this post I’ll go over how to use templated helpers to handle both a built-in type, DateTime, as well as a custom type which will demonstrate using a custom model binder.

category: Web Dev | clicked: 1 | | source: www.gregshackles.com | show counter code
tags: Templates, Binding, MVC 2, jQueryUI

No comments yet, be the first one to post comment.

To post your comment please login or signup