title: Passing input value to action (ASP.Net MVC 3)
body: <p>I have code in View:</p>
  
  <pre><code>@using (Html.BeginForm("MyAction", "MyController")
  {
      &lt;input type="text" id="txt" /&gt;          
      &lt;input type="image" src="/button_save.gif" alt="" /&gt;
  }
  </code></pre>
  
  <p>How can I pass value of txt to my controller:</p>
  
  <pre><code>[HttpPost]
  public ActionResult MyAction(string text)
  {
   //TODO something with text and return value...
  }
  </code></pre>