You'll probably have to write your own Javascript function to handle this situation and tell your AjaxOptions
to call this function in the OnSuccess
event.
using (Ajax.BeginForm("Change content",
"UpdateContent",
"Home",
new AjaxOptions()
{
OnSuccess = "updateMainContent"
}))
{
<!-- ...HTML... -->
}
Javascript (using jQuery):
// The data parameter will be whats returned from your controller action.
// In this case it will be the resulting HTML from your partial view.
function updateMainContent(data) {
$("#mainContent").append(data);
}