Hi, I include @section Scripts in my view, when I try to run the app I get this error -
Invalid Operation Exception: The following sections have been defined but have not been rendered by the page at '/Views/Shared/_Layout Metronic. cshtml': 'Scripts'. To ignore an unrendered section call Ignore Section("sectionName").
How do you get the script read, I have some datatables stuff in there, I'm trying to include. Its a .net core project.
thanks
I've added @RenderSection("Scripts", required: false) to _layoutMetronic and added my js file to assets folder the script is being read now. Thanks.
Hi,
Glad to hear that. Please let us know if you have any further questions on this topic or anything else.
Regards,
Lauris Stepanovs,
Keenthemes Support Team