<%=Html.LabelFor(model => model.sUser) %><%=Html.TextBoxFor(model => model.sUser) %><%=Html.ValidationMessageFor(model => model.sUser) %>这三个当中第一个是显示,第二是textbox是文本框,第三个就是客户端验证。也就是验证输入的有效性,在jquery.validate.js中的验证。该jquery.validate.js在<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript">这个中被包含了
时间: 2024-08-06 07:43:57