Answers for "render section asp.net mvc layout"

C#
0

render section asp.net mvc layout

<html>
    <body>
        @RenderBody()
        @RenderSection("scripts", required: false)
    </body>
</html>
@section scripts {
     <script type="text/javascript">alert('hello');</script>
}
Posted by: Guest on January-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language