title: Passing the value of an id with @Ajax.ActionLink
body: <p><strong>The goal</strong>: to pass an userId and two timestamps to the controller via an <code>@Ajax.ActionLink()</code>.
  So far what I have:</p>
  
  <pre><code>&lt;table class="table table-hover ALStable thickborder" id="resultsTable"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Username&lt;/th&gt;
        &lt;th&gt;Access level&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      @for (int i = 0; i &lt; Model.Users.Count(); i++)
      {
        &lt;tr&gt;
          &lt;td&gt;
            @Ajax.ActionLink(Model.Users[i].Username, "UserTracking", new { userId = Model.Users[i].Id }, new AjaxOptions { UpdateTargetId = "userTracking" }, new { @style = "font-weight:bold;" })
          &lt;/td&gt;
          &lt;td&gt;@Html.DisplayFor(m =&gt; m.Users[i].AccessDescription, new { htmlAttributes = new { @class = "form-control", @style = "width: 100%" } })&lt;/td&gt;
        &lt;/tr&gt;
      }
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;h3 class="text-primary shadowedtext"&gt;Time filter&lt;/h3&gt;
  &lt;p&gt;Show from:&lt;/p&gt;
  &lt;div id="datetimepicker1"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
    $(function () {
      $('#datetimepicker1').datetimepicker({
        inline: true,
        format: 'DD MMMM YYYY',
        defaultDate: moment().subtract(1, "days")
      }).on("dp.change", function (e) {
        setDate(e.date.valueOf(), 0);
      });
    });
  &lt;/script&gt;
  
  @Html.HiddenFor(m =&gt; m.FromDate)
  
  &lt;p&gt;Show until:&lt;/p&gt;
  &lt;div id="datetimepicker2"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
    $(function () {
      $('#datetimepicker2').datetimepicker({
        inline: true,
        format: 'DD MMMM YYYY',
        defaultDate: moment()
      }).on("dp.change", function (e) {
        setDate(e.date.valueOf(), 1);
      });
    });
  &lt;/script&gt;
  
  @Html.HiddenFor(m =&gt; m.UntilDate)
  
  &lt;div id="userTracking"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Controller method</p>
  
  <pre><code>public ActionResult UserTracking(int userId, long from, long until)
  {
    Models.GPSInformation detail = new Models.GPSInformation();
    .....
    return PartialView(detail);
  }
  </code></pre>
  
  <p>Also there are two date time pickers on the page, where the user can select the date interval. For testing I've filled the from and until parameters with dummy data. <br /> That part is solved where the id is populated with the selected date's timestamp, but I can't pass those two values when the actionlink is clicked. <br/>
  Any ideas, help is really appreciated.</p>