I suggest you ...

make @RenderSection and @RenderBody process according to Layout

@RenderBody is running first, and then the @RenderSection in order they occur in (Body or Layout?) even when @RenderSection is done before the @RenderBody in the Layout file.

This behavior is unintuitive and causes unintended bugs as PageData["variable"] values get modified between Body and Sections.

Now that I have figured out some of the mystery here, I can avoid the unintended bugs, but I would like this fixed to make the code more intuitive.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Cameron UsmanCameron Usman shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base