Javascript 使用对话框表单进行编辑时,MVC5 asp.net在工具提示中显示验证错误
我尝试使用插件从 但验证错误第一次出现在EditControl下,当我按下“保存”按钮时,验证错误消失,第二次按下“保存”按钮时,验证错误就像工具提示一样消失 请帮帮我 非常感谢 1_Layout.cshtmlJavascript 使用对话框表单进行编辑时,MVC5 asp.net在工具提示中显示验证错误,javascript,twitter-bootstrap,asp.net-mvc-5,Javascript,Twitter Bootstrap,Asp.net Mvc 5,我尝试使用插件从 但验证错误第一次出现在EditControl下,当我按下“保存”按钮时,验证错误消失,第二次按下“保存”按钮时,验证错误就像工具提示一样消失 请帮帮我 非常感谢 1_Layout.cshtml <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Moving Pro Services</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<link href="@Url.Content("~/Content/jquery.validate.mvc.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
@if (HttpContext.Current.User.Identity.IsAuthenticated)
{
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Moving Pro Services", "Index", "Home", new {area = ""}, new {@class = "navbar-brand"})
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Services <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>@Html.ActionLink("Companies", "Index", "Companies")</li>
<li>@Html.ActionLink("App Versions", "Index", "AppVersions")</li>
@if (User.Identity.IsAuthenticated)
{
if (User.IsInRole("Administrator"))
{
<li>@Html.ActionLink("Create User", "Register", "Account")</li>
}
}
</ul>
</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
}
</div>
<div class="container body-content">
@RenderBody()
<hr/>
<footer>
<p>© @DateTime.Now.Year - Moving Pro Services</p>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
<div id='myModal' class='modal fade in'>
<div class="modal-dialog">
<div class="modal-content">
<div id='myModalContent'></div>
</div>
</div>
</div>
</body>
</html>
@ViewBag.Title-移动专业服务
@style.Render(“~/Content/css”)
@Scripts.Render(“~/bundles/modernizer”)
@if(HttpContext.Current.User.Identity.IsAuthenticated)
{
@ActionLink(“移动专业服务”、“索引”、“主页”、新{area=”“}、新{@class=“navbar品牌”})
-
- @Html.ActionLink(“公司”、“索引”、“公司”)
- @ActionLink(“应用程序版本”、“索引”、“应用程序版本”)
@if(User.Identity.IsAuthenticated)
{
if(User.IsInRole(“管理员”))
{
- @ActionLink(“创建用户”、“注册”、“帐户”)
}
}
- @ActionLink(“关于”、“关于”、“主页”)
- @ActionLink(“联系人”、“联系人”、“主页”)
@Html.Partial(“_LoginPartial”)
}
@RenderBody()
&抄袭@DateTime.Now.Year-移动专业服务
@Scripts.Render(“~/bundles/jquery”)
@Scripts.Render(“~/bundles/bootstrap”)
@RenderSection(“脚本”,必需:false)