Can someone explain what RenderBody() does in detail. I am new to MVC.
@RenderBody()
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Sep 15, 2013, 6:51 AM
@RenderBody() is a helper method in ASP.NET MVC and is very similar to
@RenderBody() renders portion of a content page which that is not within a named section. ASP.NET MVC also provides @RenderPage() & @RenderSection() helper methods to render content of a page in other page and render the content of a named section respectively.
I suggest you to visit here: http://www.w3schools.com/aspnet/mvc_htmlhelpers.asp
This will give you more insight on the topic.
Hope it helps :)