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

Advertisements

2 thoughts on “Types of ASP.NET MVC Views

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 )

Google+ photo

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

Connecting to %s