I suggest you ...

Be able to use cumulative @section declaration

Suppose that we have a @RenderSection("ScriptsContent") in the _layout.cshtml file.

If i use "@section ScriptsContent" in a View and i also use the SAME section in a PartialView, i would like to have it cumulative.

So the @RenderSection("ScriptsContent") will render the one declared in the View + the one declared in the PartialView.

It will be very usefull when you want to have all your scripts at the bottom of you page and want to declare them here and there in your view and partial view.

204 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Alexandre Jobin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      ASP.NET MVC

      Feedback and Knowledge Base