title: razor/mvc code running on page load instead of onclick?
body: <p>I have a loop that creates some buttons and (is meant to) make a function call when that button is pressed.</p>
  
  <pre><code>    foreach (Answer a in qanswers)
             {
                 //Guid answerid = new Guid();
                 &lt;form method="post" action=""&gt;
                 &lt;div class="float-left"&gt;
                 &lt;input type="submit" value="@a.Answer1" class="submit" style="width:600px" onmousedown="@{saveTest(a, module, user, quest, healthsafety);}"&gt;
                 &lt;br /&gt;&lt;br /&gt;
                 &lt;/div&gt;
                 &lt;/form&gt;
             }
  </code></pre>
  
  <p>However, it calls the "saveTest" procedure at page load for each button produced, rather than onmousedown/onmouseclick. </p>
  
  <p>Is it possible to change this?</p>