Click here to Skip to main content
15,906,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i was developing the mvc project and while excute the project one error occur i.e



"The following sections have been defined but have not been rendered for the layout page "~/Views/Shared/Incident_Layout.cshtml": "Scripts"."



please help me.

thank u.
Posted

1 solution

It means that in your page you have something like this:
HTML
@section Scripts {

}

But there is no @RenderSection("Scripts") in the layout page...
You may add it or check if it is only a type in the section name...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900