How to change dynamically Layout page in MVC4?

Posted by Mandlaa under ASP.NET MVC on 11/27/2013 | Points: 10 | Views : 9626 | Status : [Member] | Replies : 2
I can created one simple project Using MVC4,

In that project i created one Layout page,

I have also created another 2 or 3 Layout page

My question is: At the time of running that project applying one Layout for all pages,

But i want to select any other Layouts for this project That selected Layout apply Dinamically all page?

How can i do this?

How can procees this one?

I don't know the Idea for this senario,

How can i Start this one ?

Can anyone give some steps for this one




Responses

Posted by: vishalneeraj-24503 on: 11/27/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi, please refer below links:-
http://stackoverflow.com/questions/15376176/asp-net-mvc-4-dynamic-page-layouts-with-widget-zones
http://stackoverflow.com/questions/18127501/dynamically-add-content-to-layout-in-mvc4
http://www.dotnet-tricks.com/Tutorial/mvc/3WDE140613-Different-ways-of-rendering-layouts-in-Asp.Net-MVC.html

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 11/27/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Also refer:-
http://mvc4beginner.com/Tutorial/MVC-Changing-Views-&-Layout-Pages.html
http://www.codeproject.com/Articles/576286/MVC-Basic-Site-Step-3-Dynamic-Layouts-and-Site-Adm
http://lkoutzas.blogspot.in/2011/02/dynamic-layout-with-mvc-3-and-razor.html

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response