惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
H
Heimdal Security Blog
K
Kaspersky official blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Schneier on Security
G
GRAHAM CLULEY
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
C
Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
Security Archives - TechRepublic
Security Archives - TechRepublic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 司徒正美
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
V
Visual Studio Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Jina AI
Jina AI
P
Proofpoint News Feed
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog
IT之家
IT之家
S
Security Affairs
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
N
News | PayPal Newsroom
Cloudbric
Cloudbric
AWS News Blog
AWS News Blog
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
NISL@THU
NISL@THU

博客园 - IT Person

算法 《微软的秘密》读书笔记 经典思维50法 SQL Server 2008 T-SQL编程系列课程之常用查询算法比较 SQL Server 2008 T-SQL编程系列课程之T-SQL标准语法 ASP.NET 4风云之旅系列之ASP.NET 4对开发人员的核心运行时新特性 ASP.NET 4 风云之旅系列之Visual Studio 2010在Web开发方面的新特性 ASP.NET开发实践系列课程之Web应用的安全攻防之网页木马 ASP.NET开发实践系列课程之ASP.NET综合调优 从架构设计到系统实施-基于Windows Server 2008的全新企业应用之Card Space身份验证 从架构设计到系统实施-基于.NET 3.0的全新企业应用之开发Vista边栏应用 从架构设计到系统实施-基于.NET 3.0的全新企业应用之开发基于MMC 3.0的管理工具 从架构设计到系统实施-基于.NET 3.0的全新企业应用之加入Silverlight支持 从架构设计到系统实施-基于.NET 3.0的全新企业应用之设计基于WPF的客户端 从架构设计到系统实施-基于.NET 3.0的全新企业应用之设计基于AJAX和IIS7的网站 - IT Person 从架构设计到系统实施-基于.NET 3.0的全新企业应用之设计基于WF的工作流 从架构设计到系统实施-基于.NET 3.0的全新企业应用之基于WCF的系统服务 - IT Person 深度剖析Workflow Foundation之Workflow Activities 深度剖析Workflow Foundation之开发流程(下)
ASP.NET 4 风云之旅系列之ASP.NET MVC 2的新特性
IT Person · 2010-03-14 · via 博客园 - IT Person

ASP.NET MVC 2的概况
ASP.NET MVC 2是ASP.NET MVC的新版本,增加了不少新特性,并提高了性能
MVC 2可与MVC 1安装并运行在一台机器上,而不互相干扰
MVC 2目前的最新版本是RC2版
MVC 2 RC2 For VS2008是独立的安装包,VS2010 RC版内置了MVC 2 RC2
至少需要.NET 3.5的支持
部分默认的Controller和View模版发生了变化

ASP.NET MVC 2 RC2的新特性
更好的关注点分离
 Html.RenderAction()
 Areas
简易的验证机制
 Data Annotations
 客户端验证
改善的Helper
 强类型的Helpers
 模版化的Helpers

Html.RenderAction
Html.RenderPartial()
直接渲染UI
Html.RenderAction
调用Controller中的Action来渲染UI

Areas
使得一个项目中的不同功能之间能够明确区分
AreaRegistration.RegisterAllAreas();

验证
Model验证提供者
 Data Annotation(默认)
 Enterprise Library
 XML
 ...
客户端验证

强类型的HTML Helpers
 Html.TextBoxFor()
 Html.TextAreaFor()
 Html.ValidationMessageFor()
 ....

模版化的Helpers
 用于显示的Helper方法
  Html.Display()
  Html.DisplayFor()
  Html.DisplayForModel()
 用于编辑的Helper方法
  Html.Editor()
  Html.EditorFor()
  Html.EditorForModel()

其它特性
 包含了Jquery 1.4.1
 Controller以及View对应T4模版的一些变化
 JsonResult
 HttpPost,HttpGet...
 异步Controller