title: Get HTML controls value in Controller
body: <p>I want to get HTML textbox value in controller. Below is my view code  </p>
  
  <pre><code>@using (Html.BeginForm("SaveValues", "TestGrid",FormMethod.Post))
  {
  &lt;table&gt;
   &lt;tr&gt;
      &lt;td&gt;Customer Name&lt;/td&gt;
      &lt;td&gt;
          &lt;input id="txtClientName" type="text" /&gt;
       &lt;/td&gt;
      &lt;td&gt;Address&lt;/td&gt;
      &lt;td&gt;
          &lt;input id="txtAddress" type="text" /&gt;&lt;/td&gt;
      &lt;td&gt;
          &lt;input id="btnSubmit" type="submit" value="Submit" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;}
  </code></pre>
  
  <p>Please check my controller code below to get the values</p>
  
  <pre><code>[HttpPost]
      public ActionResult SaveValues(FormCollection collection)
      {
          string name = collection.Get("txtClientName");
          string address = collection.Get("txtAddress");
          return View();
      }
  </code></pre>
  
  <p>I am getting null values</p>