The following sections have been defined but have not been rendered for the layout page

前端 未结 5 875
故里飘歌
故里飘歌 2021-02-03 18:13

This is an ASP.NET MVC 3 exception message. What it says? What should I do?

OK, I have this code:

@{
     Layout = \"~/_Layout.cshtml\";
     Page.Title          


        
5条回答
  •  青春惊慌失措
    2021-02-03 18:30

    usually this error occurs if you do not write code for the section which is required by your master layout-page

    Reference: https://ziaahmedshaikh.wordpress.com/2016/02/17/the-following-sections-have-been-defined-but-have-not-been-rendered-for-the-layout-page/

提交回复
热议问题