@Section Scripts in ASP.Net (VB)

Viewed 1792

This is driving me nuts. I am a C# coder currently having to alter a VB.Net web app. I have

In _Layout.vbhtml

@RenderSection("scripts", required:=False)

In the view, when I add

 @Section Scripts
        <script src='@Url.Content("~/Scripts/kendo-grid-utilities/kendo-grid-filter-menu-sorter.js")' type="text/javascript"></script>
 End Section

the page just 404s - any clues?

2 Answers

maybe it's because you should translate de section name exactly as in Layout

@RenderSection("scripts", required:=False)

 @Section scripts

    <script src='@Url.Content("~/Scripts/kendo-gridutilities/kendogridfiltermenu-sorter.js")' type="text/javascript"></script>

End Section
Related