title: Cannot properly passing the value of textbox in a table row from view to controller in MVC5
body: <p>I am trying to send 3 values from a view to another action, using actionlink. I have a table . Each row has 3 columns , with id, name and bid money which is a textbox. The problem is the action link only passing the value of the textbox of the first row, suppose if I press the actionlink of the second row, it is passing, the name and id of the second row but the bid money which is in textbox, is passing of the first row.</p>
  
  <p>my view code:</p>
  
  <pre><code>@model List&lt;UdemyMVC.Models.Movies&gt;
  @{
      ViewBag.Title = "Index";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;table class="table table-striped table-bordered table-hover"&gt;
      &lt;thead&gt;
          &lt;tr class="danger"&gt;
              &lt;th&gt;
                  Id
              &lt;/th&gt;
              &lt;th&gt;
                  Name
              &lt;/th&gt;
              &lt;th&gt;
                  Bid Money
              &lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt; 
          @foreach (var movie in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;
                      @movie.Id
                  &lt;/td&gt;
                  &lt;td&gt;
                      @movie.MovieName
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;input type="text" id="bidMoney" name="bidMoney"/&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.ActionLink("Details", "Details", "Test", new { Id =movie.Id, MovieName = movie.MovieName }, new { onclick = "this.href += '&amp;biddingMoney=' + document.getElementById('bidMoney').value;", @class = "btn btn-primary" })
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>