title: Using mvc2 and c#, how do I call a void method in my controller from view
body: <p>I am trying to make a button in html that when it is clicked, it calls a method that is in my controller that will create a pdf.</p>
  
  <p>my controller is DashboardController, my method is called PrintConfirm()</p>
  
  <p>here is my html:</p>
  
  <pre><code>&lt;a onclick="&lt;%:Url.Action("PrintConfirm")/%&gt;fileName" rel="external" target="_blank"&gt;
      &lt;button class="ui-icon ui-icon-print" data-role ="button"&gt;Print Confirmation&lt;/button&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>When I run it, all I get is a printer icon and nothing happens when I click on it</p>