Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m new to asp.net mvc and now i want to create an web application into mvc 3 which contain an common look and feel for all view(like asp.net webform pages) so there we can use master page for common look and feel but into mvc 3 what is the way to provide common look and feel or hedeer and footer to all view into our application . so kindly help me to add master page facility into mvc3 or other alternative of master page into asp.net mvc3 web application.
Posted

1 solution

In MVC terminology, it is called as Layout page.

Read this for more info:
http://www.w3schools.com/aspnet/mvc_layout.asp[^]
ASP.NET MVC 4 - Layout and Section in Razor[^]
https://www.youtube.com/watch?v=1DJ2GaUj97g[^]

After creating the Layout page, don't forget to add the RenderBody() method in it. It is used to render the content page.

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900