title: Clicking on a link to call an ActionResult with parameter
body: <p>I have an Actionlink that should be clickable. It should pass the invoice number
  to a method called Report in my controller. I created a route for this and it is shown
  below. 
  At the moment I am not able to hit the Report method with the parameter passed. Nothing
  happens. My page just flicker. 
  What am I missing?</p>
  
  <pre><code>             @foreach (var objUser in Model.Invoices)
               {
                      &lt;tr&gt;            
                          &lt;td&gt;&lt;input type="checkbox" name="ckCheck" /&gt;&lt;/td&gt;
                          &lt;td&gt;@objUser.invoiceDate&lt;/td&gt;                 
                          &lt;td&gt;@Html.ActionLink(objUser.invoiceNumber, "Report", new { id = objUser.invoiceNumber }) &lt;/td&gt;
                          &lt;td&gt;@objUser.accountNumber&lt;/td&gt;
                          &lt;td&gt;@String.Format("{0:#,0.00}", objUser.amount)&lt;/td&gt;
                          &lt;td&gt;@String.Format("{0:#,0.00}", objUser.amountDue)&lt;/td&gt;
                      &lt;/tr&gt;
               }
  
  
                public static void RegisterRoutes(RouteCollection routes)
                      {
                          var routeProvider = PluginLocator.GetPlugin&lt;IRouteProvider&gt;();
                          routes.MapRoute(null, "Invoice", new { controller = "Invoice", action = "Report" });
                          routeProvider.RegisterRoutes(routes); 
                      }
  
  
                public ActionResult Report(int id = 0)
                      {           
                          ReportClass rptH = new ReportClass();
                          rptH.FileName = Server.MapPath("/myreport/ourReport.rpt");
                          rptH.Load();
                          rptH.SetDatabaseLogon("zombie", "zombie29");
                          rptH.SetParameterValue("PARAM_REPORT_RUN_ID", id);
                          Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
                          return File(stream, "application/pdf");
                      }
  </code></pre>