摘要: _ViewStart.cshtml、_Layout.cshtml、Index.cshtml三个页面加载时候的先后顺序就是: _Layout.cshtml ViewStart.cshtml Index.cshtml 每个View下Controller对应的文件夹中,可以添加自己的_ViewStart.cshtml,用来指定独自使用的布局视图,采... 阅读全文
posted @ 2014-07-24 00:58 Setme 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 在Global.asax.cs文件中 protected void Application_BeginRequest(Object sender, EventArgs e) { Application["StartTime"] = System.DateTime.Now; } 再在webform1中的page_load事件中添加 ... 阅读全文
posted @ 2014-07-24 00:56 Setme 阅读(601) 评论(0) 推荐(0) 编辑
摘要: MVC 即模型视图控制器(Model View Controller) 利于团队开发、便于管理与维护。代码易读性强。未来的主流开发框架结构。 当然,缺点也显而易见,与传统开发框架相比有很大的不同。需要抛弃以前的观念来进行学习。 阅读全文
posted @ 2014-07-24 00:52 Setme 阅读(204) 评论(0) 推荐(0) 编辑