How to pass string type array from Controller to View in ASP.NET Core

First to remember that when we pass array, List or any collection from controller to view then must to add model with IEnumerable<type> . Here IEnumerable refer to collection.  After that you can retrieve items using for-each loop.



How to pass string type array from Controller to View in ASP.NET Core How to pass string type array from Controller to View in ASP.NET Core Reviewed by Jacob Lefore on June 16, 2017 Rating: 5

No comments