我如何制作自定义 HTML Helper 就像Html.CheckBoxFor() 我制作依赖于数据库的动态表单输入一样,所以我需要生成我的自定义 HTML 元素
我尝试PartialView通过ajax request返回并将返回HTML的添加 PartialView到DOM,但需要更多时间,具体取决于服务器端
$.ajax({
type: "GET",
url: "@Url.Action("FindTransactionForInternal", "Transactions")",
contentType: 'application/json; charset=utf-8',
dataType: 'html',
data: { transId:transId },
success: function (response) {
$('#internaldetails').html(response);
}
});
慕村9548890
相关分类