Update partial view after submit Ajax.Beginform
In the AjaxOptions
that your are simply now passing as new AjaxOptions
you can specify the target element using the UpdateTargetId
property:
<div id="unique_thing_id">@using (Ajax.BeginForm("Afunc", new AjaxOptions { UpdateTargetId = 'unique_thing_id' })){ }</div>
Above, a container with unique id for every "thing" is represented with <div id="unique_thing_id">
. This will be replaced with the repsonse of the request. Change Afunc
to render only the particular "thing" partial.