asp.net mvc - How do I use master page container in partial view -


I have several partial ideas with JavaScript that I'm trying to go to under the page. To do this, I am trying to use a container in the master page.

Master page ->

  & asp: ContentPlaceHolder ID = "Foot" runat = "Server" & gt; & Lt; / ASP: ContentPlaceHolder & gt;  

Partial view (SSCX)

  and  

But I get this error

Parser error message: Content control should be top-level control in a content page or a nested master page, which is a master page Refers to.

How can I make sure that the JavaScript part is in the lower part of the page? Especially in cases where the HTML layout should be at the top of the page?

The best way to use nested master pages instead of user control.


Comments