title: pass value attribute from view to controller asp.net mvc
body: <p>here was my code from view</p>
  
  <pre><code>@{ var companies = (IEnumerable&lt;Company&gt;)ViewData["companylist"]; }
  @foreach (var item in companies)
  {
      //post the form to upload actions, index2 for testing
         &lt;form id="submitfinal" method="post" asp-action="Upload" asp-controller="report" enctype="multipart/form-data"&gt;
              &lt;input type="hidden" name="companyid" value="@item.Id" /&gt;
              @item.Name (@item.Status)
  
              &lt;input type="file" name="files" /&gt;
              &lt;input name="submit" type="submit" value="upload final report" /&gt;
  
      &lt;/form&gt;
  
  }
  </code></pre>
  
  <p>Question here was how can i take the data from input tag attribute to controller?
  let say the @item.Id is 1234, how i get that in controller?</p>