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

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes