Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@Section Scripts in ASP.Net (VB)

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?

like image 693
kpollock Avatar asked Dec 17 '25 13:12

kpollock


1 Answers

Have you maybe tried the following?

@Section Scripts
<script src="~/Scripts/kendo-grid-utilities/kendo-grid-filter-menu-sorter.js" type="text/javascript"></script>
End Section
like image 177
Deedz Avatar answered Dec 19 '25 01:12

Deedz