About Me

Thursday, 19 November 2015

View with Collection in ASP.net MVC

Until
now we are discussing how to display single record in view, now I'm going to
display collection of records in view with strongly type ViewModel. In this
article I'm going to discuss about View with Collection of records.

Summary

Until now we are discussing how to display
single record in view, now I'm going to display collection of records in view
with strongly type ViewModel. In this article I'm going to discuss about View
with Collection of records.

Follow below steps to achieve our goal:

Step 1 : Create Folder

Create a new folder called
"ViewModels" in the project solution.

Step 2 : Create StudentViewModel

Create a new class called
"StudentViewModel" inside ViewModels folder as like below.