2
我試圖在我的asp.net mvc 2 web應用程序(Visual Studio 2010)上獲取客戶端驗證。客戶端驗證IS工作。但驗證摘要不是。在MVC 2中使用JQuery進行驗證總結
我包括以下腳本
<script type="text/javascript" src="../../content/scripts/jquery-1.4.1.js"></script>
<script type="text/javascript" src="../../content/scripts/jquery.validate.js"></script>
<script type="text/javascript" src="../../content/scripts/MicrosoftMvcJQueryValidation.js"></script>
有這種這種形式開始
<% Html.EnableClientValidation(); %>
之前和形式裏面
<%: Html.ValidationSummary("There are some errors to fix.", new { @class = "warning_box" })%>
<p>
<%: Html.LabelFor(m => m.Name) %><br />
<%: Html.TextBoxFor(m => m.Name) %>
<%: Html.ValidationMessageFor(m => m.Name, "*") %>
</p>
我有最新版本的來自MvcFutures下載的MicrosoftMvcJQueryValidation.js,但它看起來不像它支持驗證摘要。我已經嘗試通過設置諸如errorContainer和errorLabelContainer等額外選項來糾正此問題,但它看起來像有一些更深層次的問題。
此文件是否有更新/更好的版本?