摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Web.Routing;namespace MyMvc{ // 注意: 有关启用 IIS6 或 IIS7 经典模式的说明, // 请访问 http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : System.Web.HttpApplication { public static voi 阅读全文
摘要:
ASP.NET中的框架验证方法1:1.模型定义public class User{ [Required(ErrorMessage="用户名不能为空!!")] [StringLength(6,ErrorMessage="用户名不能多于6个字符!!")] [DisplayName("用户名:")] public string U_Password { get; set; } [Required(ErrorMessage = "密码不能为空!!")] [StringLength(6, ErrorMessage = &qu 阅读全文