title: Handle button clicks in a .NET MVC application/ calling a controller from a cshtml page
body: <p>I am working on a MVC web application and not sure where I should add my code to handle button clicks.  I have a cshtml view that is being rendered by a controller.  When the view is displayed I need to handle several buttons that are being displayed - such print, email, etc.  Where should I add my code to handle these and can you give me an example on how to implement it?</p>
  
  <pre><code>&lt;input id="save-button" type="submit" class="btn btn-primary" onclick="submitOrder();" value="Print Order" /&gt;
  </code></pre>
  
  <p>The submitOrder() call is what I need to handle.</p>