摘要: MVC路由的选择是从上向下去找到,当找到满足条件的路由后会自动跳出.namespace OA { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : System.Web.HttpApplication { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute 阅读全文
posted @ 2011-05-20 13:34 张占岭 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 过滤器其实就是.net中的特性,在.net.35之后我们可以在类或者方法名称上面加某种特性,而在.net mvc环境下,有几个比较重要的特性,如AuthorizeAttribute它主要有在权限验证上,有时我们习惯叫它“过滤器”,原因是它可以把不符合要求的用户过滤掉,呵呵,下面是系统中常见的用户权限过滤器的代码,供大家学习 1 namespace Web.Attributes 2 { 3 4 /// <summary> 5 /// 用户验证列举 6 /// </summary> 7 public enum AuthenticationType 8 { ... 阅读全文
posted @ 2011-05-20 13:27 张占岭 阅读(2114) 评论(0) 推荐(2) 编辑
摘要: namespace Entity { /// <summary> /// 用户登录消息 /// </summary> public class UserLoginMessage : IEntity { List<string> message = new List<string>(); /// <summary> /// 列表 /// </summary> public List<string> List { get { return this.message; } } public IDataEntity E 阅读全文
posted @ 2011-05-19 16:48 张占岭 阅读(708) 评论(0) 推荐(0) 编辑
摘要: namespace Entity { /// <summary> /// 自定义主键编码 /// </summary> public enum PkIdRecordCode { /// <summary> /// OrderID /// </summary> OR = 10, /// <summary> /// ProductID /// </summary> PR = 30, /// <summary> /// StoreID /// </summary> ST = 40, /// <sum 阅读全文
posted @ 2011-05-19 16:43 张占岭 阅读(875) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" src="http://img.zzl.com/script/jquery/jquery-1.4.2.min.js"></script><script type="text/javascript"> $(function() { $("#open").click(function() { openDialog(a1); //调用,直接写上DIV的ID即可 }); }); var openDialog = functio 阅读全文
posted @ 2011-05-19 16:42 张占岭 阅读(654) 评论(1) 推荐(0) 编辑