Click here to Skip to main content
15,028,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am having a layout page which contains renderbody().
If i run the soulution in the place of renderbody the whole page with layout is displayed

Layout design

Renderbody(again layoutdesign with view is displayed)

Could any one help me on this pls.

Thanks in advance

1 solution

I assumed here ,
This happened to me once when I tried to make a jQuery postback and getting a ActionResult in Html formate, if want to check try to put alert in result. and then check your alert html code will have your layout page code again in your next container division.
The reason behind that is you are returning a View not the partial view. and if you return a view It will always comes with the layout code.
so try to return an partial view .

Hope this helps.
viveka1210 20-Jun-14 1:16am
If i return partialview, only my view part is diaplayed i.e white screen with view content. I tried viewstart and specifiying layout path in individual page as well. Still not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900