jjzjj

MarriageInformation

全部标签

c# - EditorFor 在没有 BeginForm 的情况下不呈现数据验证属性

在MVC应用程序中,我想动态呈现表单的某些部分(类似于Controller端的PartialView)在部分View中,我没有Html.BeginForm(),因为表单标签已经呈现。@modelIntroduction.Models.Human@Html.EditorFor(model=>model.MarriageInformation.SpouseDetails)@Html.LabelFor(model=>model.MarriageInformation.DOM)@Html.EditorFor(model=>model.MarriageInformation.DOM)@Html.