Mike Brind 11/10/2020

Implementing a Custom Model Binder In Razor Pages

Read Original

This technical article explains how to implement a custom model binder in ASP.NET Core Razor Pages to solve a specific data binding issue. It details the problem of binding HTML5 week input type values to a DateTime property and provides a step-by-step solution by creating a WeekOfYearModelBinder that implements the IModelBinder interface.

Implementing a Custom Model Binder In Razor Pages

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser