How to Pass Multiple Models in ASP.NET MVC

In this article, we’ll provide you the best way to pass multiple models from controller to view in ASP.NET MVC. There are 6 approaches. The 6 approaches described in theis article have their pros and cons. What you pick will depend on a specific scenario in hand and it is obviously a debatable topic. Before taking any decision, you need to identify your exact requirements then before choosing one, compare its pros and cons.

  1. Partial View
  2. ViewModel
  3. ViewData
  4. ViewBag
  5. TempData
  6. Tuple

Take note that an application can use more than one approach based on the requirement  and at a particular point. However, we need to consider the best one in need.

Read the rest of the post here:

Leave a Reply

Your email address will not be published. Required fields are marked *