Self-AJAX-updating partial-view/controller in ASP.Net MVC and the duplicating div

后端 未结 6 702
生来不讨喜
生来不讨喜 2021-01-04 12:04

I have a partial view in MVC that goes something like:

...

Inside that div there\'s a form tha

6条回答
  •  滥情空心
    2021-01-04 12:54

    Are you using an AjaxHelper.Form or jQuery. If you are using jQuery, have you tried using replaceWith()? Using AjaxHelper are you using AjaxOptions { InsertionMode = InsertionMode.Replace }? I would think that using either you would be able to replace the entire DIV with the results from the partial view.

提交回复
热议问题