title: How passing properly parameters value in HttpPost Action in ASP.NET MVC?
body: <p>I am trying to submit the value of the submit button that was clicked to a controller method but the parameter in the method is not being bound to the value of the clicked button.</p>
  
  <p><strong>View</strong></p>
  
  
  
  <pre class="lang-cs prettyprint-override"><code>@using (Html.BeginForm())
  {
      ....
      &lt;input type="submit" name="test" value="TEST"  /&gt;
      &lt;input type="submit" name="test" value="TEST22" /&gt;
  }
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpPost]
  public ActionResult Index(string action)
  {
      // the value of action is null
      ....
      return View();
  }
  </code></pre>