动态form无法验证问题。在弹出层的情况下同样可以验证

@using NewMoon.Models.AncientCity;
@model NewMoon.Models.AncientCity.AncientCityBasicInfoVM


@{
    ViewBag.Title = "BasicInfo";
    Layout = "~/Views/Shared/_BasicLayout.cshtml";
}
















@*@using (Ajax.BeginForm(new AjaxOptions { }))
    {
        @Html.EditorFor(m => m.AncientCityBasicInfo.ArticleTitle);
        @Html.ValidationMessageFor(m => m.AncientCityBasicInfo.ArticleTitle);
       
    }*@




   

你可能感兴趣的:(ASP.NET,MVC)