У меня есть код в View:
@using (Html.BeginForm("MyAction", "MyController")
{
<input type="text" id="txt" />
<input type="image" src="/button_save.gif" alt="" />
}
Как я могу передать значение txt в мой контроллер:
[HttpPost]
public ActionResult MyAction(string text)
{
//TODO something with text and return value...
}