razor - why can't I run scripts in line in my cshtml file? -
@section scripts { <script type="text/javascript"> function greysubmit() { if (document.getelementbyid('qa1') != request.form[a] || request.form[b] || request.form[c] || request.form[d]) { document.getelementbyid('submit').disabled(); } } </script> <script type="text/javascript"> function returnsubpage() { return redirect("~/home/submitted"); } </script> }
when view runs, these skipped over. also, these in layout file.
@scripts.render("~/bundles/jquery") @scripts.render("~/bundles/bootstrap") @scripts.render("~/bundles/admin") @rendersection("scripts", required: false)
i'm confused why these won't run? know don't because added breakpoints code , never hits these. file large, think there maybe overriding want make sure i'm not missing something.
Comments
Post a Comment