#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    28
    Rep Power
    0

    Trouble rendering Layout


    Hey devs,

    Hoping for some direction here. I have created a new MVC called "Shows". (ShowsController, ShowsModel, Index). I have also created a "Create" View inside the Shows Controller which all functions just fine.

    The problem is that I cant seem to apply any sort of Layout template to the "Create" page. The error I get is:


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

    Exception Details: System.Web.HttpException: The following sections have been defined but have not been rendered for the layout page "~/Views/Shared/_ColumnsTwo.cshtml": "Scripts".


    Wondering why the layout will render fine on the "index" view but no on the "create" view.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    28
    Rep Power
    0
    I just noticed it's because I had

    Code:
    @section Scripts {     @Scripts.Render("~/bundles/jqueryval") }
    at the bottom of the page.

    #newb

IMN logo majestic logo threadwatch logo seochat tools logo