From some previous posts I have done something like this to use @scripts.render( /bundles/jqueryval )
in my partial view.
LayoutUser.cshtml (Master layout)
@RenderSection("Script", false)
@section Script{
<script src=..... </script>
......
}
AccountLogin.cshtml(Partial layout)
@section Script {
@Scripts.Render("~/bundles/jqueryval")
}
<script src=..... </script>
This portion of implementation works fine for AccountLogin.cshtml page but unfortunately my master layout script not working. As I am newbie to MVC, its really hard to understand the actual cause and solution of this. Am I use @scripts.render( /bundles/jqueryval )
correctly to the partial view or just need to change master layout script section?
Thanks