Dario Santarelli 12/26/2010

[ASP.NET MVC 2] Splitting DateTime in drop-down lists and model binding

Read Original

This technical article explains how to implement a custom DateTime editor in ASP.NET MVC 2 that splits date and time components into separate dropdown lists. It covers registering a custom model binder, creating editor templates (Date.ascx and DateTime.ascx), and binding the splitted values back to a single DateTime property in the model.

[ASP.NET MVC 2] Splitting DateTime in drop-down lists and model binding

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week