Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4777

Pass (Send) Array from Controller to View in ASP.Net MVC

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from Controller to View using ViewBag in ASP.Net MVC Razor. The List Collection will be populated from Database using ADO.Net inside the Controller and it will be converted to Array and passed to the View using ViewBag. Later in View, the Array will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.

Viewing all articles
Browse latest Browse all 4777

Trending Articles