Types of ASP.NET MVC Views

 Read full post on Falafel blog

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.

ViewsTypes

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,

  1. Dynamic view
  2. Strongly typed view

Read full post on Falafel blog

2 responses to “Types of ASP.NET MVC Views”

  1. […] Types of ASP.NET MVC Views and Resolving Dependencies in ASP.NET MVC 5 using StructureMap (Dhananjay Kumar) […]

  2. […] Types of ASP.NET MVC Views and Resolving Dependencies in ASP.NET MVC 5 using StructureMap (Dhananjay Kumar) […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com