Can you explain RenderBody and RenderPage in MVC?

RenderBody is like ContentPlaceHolder in web forms. This will exist in layout page and it will render the child pages/views. Layout page will have only one RenderBody() method. RenderPage also exists in Layout page and multiple RenderPage() can be there in Layout page.

Comments

Popular posts from this blog

Explain what is the difference between View and Partial View?

Difference Between Singleton and Static class?

Explain what is routing in MVC? What are the three segments for routing important?