If I have a text box in my view:
<div><%= Html.TextBox("Comments", Model.Comments)%></div>
I want to publish the contents of this text box to the controller using an Ajax call. I need only one value, so I do not want to publish the whole form.
<%= Ajax.ActionLink("update", "UpdateComments",
new { comments = },
new AjaxOptions { HttpMethod="POST" })%>
How to get the value of a text field?
source
share