Good morning, insira o código aqui
I can not load .js / .css when loading partialview
no layout
<!DOCTYPE html>
<html>
<head>
...
@RenderSection("header", required: false)
</head>
<body>
...
@RenderSection("scripts", required: false)
</body>
</html>
in view index
@section header{
@Styles.Render(...)<carrega de boa>
@Scripts.Render(...)<carrega de boa>
}
@{
ViewBag.Title = "Usuários";
}
<div class="row">
@Html.Partial("~/Views/Cadastros/_ListaUsuarios.cshtml")
</div>
@section Scripts {
...
}
na partialview
@section header{
@Scripts.Render("~/Content/plugins/datatables/js") <<<<<<<<<<<<<<<<NÃO CARREGA>
}
<table id="#example" class="table-striped table-bordered tableHeader-skin-blue" style="width:100%">
<thead>
<tr>
....
</tr>
</thead>
<tbody>
...
</tbody>
</table>
I would like to know why the script I put in partialview is not being added to html?
Could anyone tell me?