title: pass parameter from view to controller razor
body: <p>I would like to pass parameter from view to controller in cshtml page. 
  This is the code I have: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function Test() {
  
          $.get(        
          "@Url.Action("UpdateReport/", "Report")"                 
      );
      }
  
  &lt;/script&gt;
  
  &lt;h2&gt;Reports&lt;/h2&gt;
  
  @foreach (var item in Model)
  {
      &lt;div&gt;@Html.ActionLink(@item.Name, "ActionCall", "Report", new { Id = @item.Id }, null )&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
                  &lt;input type="button" class="button1" value="Insert" /&gt;
                  &lt;input type="button" class="button1" value="Delete" /&gt;
                  &lt;input type="button" onclick="Test()" class="button1" value="Update" /&gt;     
  }
  </code></pre>
  
  <p>When I click the update button I would like to pass the @item.Id to the controller action via the JS code I have. The code is stepping in to the controller action now, but without parameters. I want to pass a parameter as well.
  Thanks in advance for every advice, Laziale</p>
  
  <pre><code>public ActionResult UpdateReport(string name)
          {
              return View("Index");
          }
  </code></pre>