In this tutorial, you will learn:
1. How to Pass Model Data to View Page?
2. How to Display controller data to View?
3. Pass Data using View Model, ViewBag, ViewData, TempData, Session, Dynamic, Tuples, RenderAction, and Navigation Properties.
1. How to Pass Model Data to View Page?
2. How to Display controller data to View?
3. Pass Data using View Model, ViewBag, ViewData, TempData, Session, Dynamic, Tuples, RenderAction, and Navigation Properties.
This section is very important for you because here you will learn various techniques to transfer model data to view pages. Till now, you have learned how to access database value using models and controllers, and this time is to learn how to display those data to view pages. After completing this section, you will be able to design model data to view pages with style.
There are following 9 ways by which you can display model data to view pages.
1. View Model
2. ViewBag, ViewData, and TempData
3. Session, Tuples, and Dynamic
4. Render Action and Navigation Properties
2. ViewBag, ViewData, and TempData
3. Session, Tuples, and Dynamic
4. Render Action and Navigation Properties
In the next few chapters, you will learn various methods to pass information to view pages. In the next chapter, you will learn pass value from models to views using View Model.