摘要:
介绍asp.net mvc 之 asp.net mvc 3.0 新特性之 Model:通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证 双重验证中,使客户端实现远程的异步验证 自定义Data Annotations 与 jQuery,以实现自定义的双重验证 示例1、Model 中通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证Web.configview sourceprint?<configuration> <!-- 要实现服务端和客户端的双重验证,需要做如下配置,因为双重验证中的客户端 阅读全文
摘要:
介绍asp.net mvc 之 asp.net mvc 3.0 新特性之 Controller:Global Action Filter可以在标记为 ChildActionOnly 的 Action 上使用 OutputCacheViewBag新增了一些 Action Result示例1、Global Action Filter 的 DemoGlobal.asax.cs(注册全局的 Action Filter)view sourceprint?protected void Application_Start() { AreaRegistration.RegisterAllAreas(); Re 阅读全文