I have found that many entry level developers get confused with various kinds of Views in ASP.NET MVC Applications. In this post I am trying to clarify various types of Views.
Type of ASP.NET MVC View depends on the way data being passed to it from Controller. There are three ways data can be passed to Views from Controller. They are as follows,
- Using ViewBag or ViewData
- Using object of the model which is strongly typed
- Using any dynamic type value
On basis of data transfer mechanism ASP.NET MVC views are categorized as two types,
- Dynamic view
- Strongly typed view