更新时间:2023-02-16 21:18:12
我想你会需要一些客户端code。
I think you will need some client side code.
尝试:
<div id="partialSummaryDiv"> Html.RenderPartial("~/Views/Account/Partials/LoginForm.cshtml", Model);</div>
事件你有你的Ajax调用
Event you'll have your ajax call
$.ajax({
url: "/Controller/Action",
type: "POST",
success: function (result) {
// refreshes partial view
$('#partialSummaryDiv').html(result);
}
});