Passer des paramètres à MVC, Ajax.ActionLink

Comment puis-je envoyer la valeur de la zone de texte en paramètre de la ActionLink?

Je besoin pour utiliser le Html.TextBoxFor

<%= Html.TextBoxFor(m => m.SomeField)%>
<%= 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"} )%>

La Contolleur/Actions ressemble à ceci:

public class MyController{
   public ActionResult MyAction(string foo)
   {      
      /* return your content */   
   }
}

En utilisant MVC 2.0

OriginalL'auteur LastCyborg | 2011-07-14