I have just switched from PHP CI(MVC) to ASP.NET MVC4 and also i am new to .net framework. I researched loading multiple views in MVC4 but i always found loading view with multiple Models and such.... What I am trying to do is load multiple view in a single page.
For eg:
I have a view left.cshtml
<div>Hello im on the left section</div>
@RenderBody();
and have next view main.cshtml
<div class="left"> // should come in the left section of the page
@{Layout = "left.cshtml"}
</div>
<div class="right">
Contents at the right and many more here
</div>
and from above what i expected is:
// Left section Right section
Hello im on the left section | Contents at the right
| and many more here
|
|
|
|
But The result was
Hello im on the left section
Contests at the right and many more here
and the CSS are also very ok. Please help....