摘要: asp.net mvc 之 asp.net mvc 3.0 新特性之 View(Razor):Razor 的语法Razor 与ModelRazor 与布局示例1、Razor 概述RazorDemoController.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using Sy... 阅读全文
posted @ 2011-07-19 12:01 as|as 阅读(822) 评论(0) 推荐(0) 编辑
摘要: asp.net mvc 之 asp.net mvc 3.0 新特性之 Model:通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证双重验证中,使客户端实现远程的异步验证自定义Data Annotations 与 jQuery,以实现自定义的双重验证示例1、Model 中通过 Data Annotations 与 jQuery 的结合实现服务端和客户端的双重验证Web.config<configuration><!--要实现服务端和客户端的双重验证,需要做如下配置,因为双重验证中的客户端验证需要依赖此配置--><appSe 阅读全文
posted @ 2011-07-19 11:02 as|as 阅读(815) 评论(2) 推荐(0) 编辑
摘要: sp.net mvc 之 asp.net mvc 3.0 新特性之 Controller:Global Action Filter:主要体现在HandleErrorAttribut上的异常过滤(在文件Global.asax.cs、web.config上相应的配置)。可以在标记为 ChildActionOnly(此标记的目的:只能让RenderAction调用。Html.Action - 直接将Action的结果作为一个字符串输出,Html.RenderAction - 将Action作为一个用户控件嵌入到当前的HttpContext中) 的 Action 上使用 OutputCache。Vie 阅读全文
posted @ 2011-07-19 10:42 as|as 阅读(417) 评论(0) 推荐(0) 编辑