I am new in MS MVC3.I am using C# with razor view engine in MVC3. There is a ‘shared’ folder (in MVC3 framework) where a _Layout.cshtml file that sharing by other views file. But how could i create more file as like _Layout.cshtml? how can i add and use more than one _Layout.cshtml file that will share the design by a specific view file, please let me know step by step because i am new in MVC3. and sorry for my bad English.
Share
You can create as many
Layoutsas you want. The default layout of the views is set in the_ViewStart.cshtmlfile.If you want to use a different layout in a view, all you have to do is set the
Layoutproperty at the start of the view.