title: Passing parameters to MVC Ajax.ActionLink
body: <p>How can I send the value of the TextBox as a parameter of the ActionLink?</p>
  
  <p>I need to use the Html.TextBoxFor</p>
  
  <pre><code>&lt;%= Html.TextBoxFor(m =&gt; m.SomeField)%&gt;
  &lt;%= Ajax.ActionLink("Link Text", "MyAction", "MyController", new { foo = "I need here the content of the textBox, I mean the 'SomeField' value"}, new AjaxOptions{ UpdateTargetId = "updateTargetId"} )%&gt;
  </code></pre>
  
  <p>The Contoller/Actions looks like this:</p>
  
  <pre><code>public class MyController{
     public ActionResult MyAction(string foo)
     {      
        /* return your content */   
     }
  }
  </code></pre>
  
  <p>Using MVC 2.0</p>