Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

render section asp.net mvc layout

<html>
    <body>
        @RenderBody()
        @RenderSection("scripts", required: false)
    </body>
</html>
@section scripts {
     <script type="text/javascript">alert('hello');</script>
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #render #section #mvc #layout
ADD COMMENT
Topic
Name
5+5 =