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


Discover more from Dhananjay Kumar

Subscribe to get the latest posts sent to your email.

Published by Dhananjay Kumar

Dhananjay Kumar is founder of NomadCoder and ng-India

2 thoughts on “Types of ASP.NET MVC Views

Leave a comment

Discover more from Dhananjay Kumar

Subscribe now to keep reading and get access to the full archive.

Continue reading