日期:2014-05-17  浏览次数:20434 次

mvc前端验证
前端验证时没反应,为什么?

@model MkMis.Safety.Domain.Model.Notice
@*@model MkMis.Web.Models.Notice*@

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>WelNoticeAdd</title>
    <link href="~/lib/css/notice_style.css" rel="stylesheet" type="text/css" />
    <script src="~/lib/jquery/jquery-1.5.2.js" type="text/javascript"></script>
    <script src="@Url.Content("~/lib/jquery-validation/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/lib/jquery-validation/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

    <script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="../ckeditor/ckfinder.js"></script>


</head>
<body>
    <div class="wel_top">
        <div class="wt_img">
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <img alt="" src="~/Images/subtitle_img.gif" /></td>
                    <td style="padding-left: 5px;">增加隐患通知信息</td>
                </tr>
            </table>
        </div>
        <div class="wt_line"></div>
    </div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        <div class="addborder">
            <table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC">
                <tr>
                    <td bgcolor="#FFFFFF" height="25" width="80" align="right">标题:</td>
                    <td bgcolor="#FFFFFF" style="padding-left: 3px;">
                        @Html.EditorFor(model => model.Title)
       &