У меня есть код в представлении:
@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...
}