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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -