摘要: 最近在做一个项目,某网站的会员系统。感觉在每个页面做服务端的验证非常烦锁。所以写了一个用方法用对象特性来实现功能。首先定义Attribute类namespace DataBase{ /// <summary> /// Attribute类 /// </summary> [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class DataFieldAttribute : Attribute { string _c... 阅读全文
posted @ 2012-06-13 11:51 蹩脚的舞步 阅读(204) 评论(0) 推荐(0) 编辑