Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:34:51+00:00 2026-06-12T14:34:51+00:00

Here is my setup in ASP.NET MVC 3: Master Page –(RenderBody)-> Index View –(Html.Action)->

  • 0

Here is my setup in ASP.NET MVC 3:
Master Page –(RenderBody)-> Index View –(Html.Action)-> Partial View.

The Master Page has a @RenderSection and the Partial View has a @section block but the content isn’t being included on the Master Page. I can, however, put the @section block on the Index View and that works. Are multi-nested Sections not supported in MVC 3? I really don’t want to move the section block up a level but will if there is no other way.

And just FYI this particular RenderSection is at the bottom of the Master Page for including JavaScript blocks. If a partial view needs to execute some script it can include the @section block to keep everything organized.

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:34:53+00:00Added an answer on June 12, 2026 at 2:34 pm

    You can’t use @section in a partial view. You can have nested layouts, but not partials.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC site (Master Page + Content pages). On the master
So here is the setup. I have a STS Provider and 2 ASP.NET MVC
I've got an Asp.Net mvc web app that has a controller action to handle
I'm trying to setup Forms Authentication in an asp.net mvc 2 application that will
I'm sending an email from my ASP.NET MVC app using the Spark View Engine
I've setup an asp.net mvc app on a windows server 2003 machine with IIS6.
I'm running into a problem with using Html.DropDownListFor() with jQuery. I'm using ASP.NET MVC
I've setup ELMAH on a asp.net mvc 3 site with the correct configuration detailed
The setup: (using Asp.Net MVC 2 RC, Entity Framework, SQL Server, VS2008) My buddy
I have an ASP.NET MVC 3 application that uses the Ninject.MVC3 extension to setup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.