title: ASP.NET MVC : Get text Box input in a controller action method
body: <p>I have 2 two textboxes in a page and a button. now when the user clicks the button I want to pass the text entered by the user in the action method of a controller. this might be silly. but I am new to MVC. pls tell me how to do this. Here is the code that I have tried.</p>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;input type="text" name="input_domain_id" class="form-control text-center" placeholder="Domain ID" autofocus required&gt;
              &lt;input type="password" name="input_domain_password" class="form-control text-center" placeholder="Domain Password" required&gt;
          &lt;div class="col-lg-12"&gt;
              &lt;p&gt;&lt;button class="btn btn-lg btn-success btn-block" type="submit" onclick="location.href='@Url.Action("VerifyLogin", "LdapLoginVerify")'"&gt;Login&lt;/button&gt;&lt;/p&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>and In the controller</p>
  
  <pre><code> public ActionResult VerifyLogin(string input_domain_id, string input_domain_password)
          {
      return(view);
  }
  </code></pre>
  
  <p>In my code I am getting null values In both the parameters.
  Pls tell me how to do this.p</p>