Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Brinker 77 posts 103 karma points
    Apr 12, 2013 @ 13:03
    Jan Brinker
    0

    RenderBody and custom body section

    Hiho,

    just a quick question about code esthetics. As far as I was able to find out, the @RenderBody function only renders content from sub-templates, that is not enclosed in a section.

    Now, I'm a German, and I have to confess that I like structure. Shocking, I know.
    So it really itches me when not putting that body-code into a "@Section Body". But at the same time it would be nice to use the @RenderBody function instead of RenderSection, simply because it's there.

    Solutions, anyone?

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 8x admin c-trib
    Apr 12, 2013 @ 13:12
    Dave Woestenborghs
    0

    I don't think it's possible. By the way, this is not Umbraco related but is default behavior of the ASP.NET MVC framework

Please Sign in or register to post replies

Write your reply to:

Draft