asp.net mvc 4 - RenderBody doesn't work -


i have main layout in @renderbody work, i'm working on new controller (called system) wanted use lay-out. added _viewstart.cshtml inside ~/views/system folder. content of page is:

@{     layout = "~/views/shared/_system.cshtml"; } 

so i've made view inside shared views folder called _system.cshtml. seem find layout, because when removed _system.cshtml did there no layout.

but why give error? :\

compiler error message: cs1502: best overloaded method match 'system.web.webpages.webpageexecutingbase.write(system.web.webpages.helperresult)' has invalid arguments  source error:  line 11:         <div id="content"> line 12:             @renderbody line 13:         </div> line 14:     </body> 

renderbody method:

@renderbody() 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -