View ASP.NET MVC
Types of View
1.Layout View
2.Partial View
3.Strongly Type View
4.Razor View
· Layout view
Layout view is also called as master page. In the layout view, you have to show the same page in all the views, keeping all the views in that page, you can use that page wherever you want to use that page.
(Having multiple views in one page and using that page where you want to use it is called layout view)
· Partial view
A partial view consists of one view. If you want to use the page in different views, you can make that page a partial view and use that page where you want to use it.
· Strongly Type View
Inside our view, if we want to show a property of a model in a data view, we make that view a strongly typed view.
· Razor view
Use of Razor View If we want to write C# code inside the view, we use Razor View. With the help of Razor View, C# code can be easily written in the view Razor View Syntax is @ Razor Syntax understands what the user is typing.
Leave a Reply
Want to join the discussion?Feel free to contribute!