Joonas Westlin 4/30/2021

Arrays in ASP.NET MVC Core route parameters

Read Original

This technical article details a solution for passing arrays via route parameters in ASP.NET MVC Core (e.g., /users/1,2,3). It explains the default limitation, provides a custom ArraySupportingRouteValueProvider class that splits values when binding to array parameters, and discusses integrating it with a custom value provider factory.

Arrays in ASP.NET MVC Core route parameters

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