In MVC 3, there is an option to specify the type of replacement when using Ajax.BeginForm. Does it replace the content of the element that you specify in UpdateTargetId or the element as a whole?
@using (Ajax.BeginForm("action", "controller", new AjaxOptions
{
UpdateTargetId = "TargetElementId",
HttpMethod = "POST",
InsertionMode = InsertionMode.Replace,
}, new { @id = "FormId" }))
{
}
It replace the content of the element. Not the element as a whole. In your case replace content inside element with id = “TargetElementId”.
common element used is DIV!