Using scripts in ASP.Net Core

 In Layout page :-

    <div>

        @RenderBody()

        @RenderSection("scripts")

    </div>

_____________________________________________________________________________________

In View page :-

@section Scripts {

    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}

}