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

June 16, 2017 0 Comments

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.



Jacob Lefore

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google

0 comments: