Ajaxbeginform replace does not work

Asked

Viewed 112 times

1

I’m using a Ajax.BeginForm to update a specific div on the page. When performing Submit and executing the action, instead of updating this DIV, the page is updated with the partial view returned from Action. I use this same piece of code in another project and this works normally.

I have tried to reimport the javascript libraries to the partial view but still the error persists.

Below is the code snippet from the startup Ajax.BeginForm.

@using (Ajax.BeginForm("Bar", new AjaxOptions { 
    HttpMethod = "POST",
    InsertionMode = InsertionMode.Replace, 
    UpdateTargetId = "Foo" 
})) 
{ 
// ... 
}

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.