title: How to pass variables from ActionLink in ASP.NET MVC with Kendo UI
body: <p>There is this Home View, calling Production View using ActionLink.</p>
  
  <pre><code>&lt;b&gt;Start Date&lt;/b&gt;
  @(Html.Kendo().TextBox().Name("startDate"))
  &lt;b&gt;End Date&lt;/b&gt;
  @(Html.Kendo().TextBox().Name("endDate"))
  @(Html.ActionLink("Production","Index","Production"))
  </code></pre>
  
  <p>On click of the Link the contents of the 2 textboxes (startDate, and endDate) need to be passed  so that they are used by this controller called Production . </p>
  
  <pre><code>public class ProductionController : Controller
     {
  
      readonly Data.OPMSProductionEntities _opms = new Data.OPMSProductionEntities();
  
      public ActionResult Index() {
             return View();
       }
  
  
      public JsonResult Get([DataSourceRequest]DataSourceRequest request)
        {
  
            var products = ConvertOutputOfAdminAssociateSPToAList(startDate,endDate);
  
            return this.Json(products.ToDataSourceResult(request));
         }
  </code></pre>
  
  <p>This is the Kendo Grid which displays data in the Production view </p>
  
  <pre><code>@(Html.Kendo().Grid&lt;Production&gt;().Name("Production").Columns(c =&gt; {
      c.Bound(p =&gt; p.Sl_No).Width(1);
      c.Bound(p =&gt; p.DateProcessed).Format("{0:MM-dd-yyyy}");
      c.Bound(p =&gt; p.Remarks);
      c.Bound(p =&gt; p.RequestedAmount).Format("{0:c}");
      })
      .DataSource(d =&gt; d
          .Ajax()
          .Read(r =&gt; r.Action("Get", "Production"))
          .PageSize(8)
  </code></pre>