开发者

ASP.NET-MVC 2 RC Best Features

I've been working with MVC 1 for some time now and have decided to finally give MVC 2 a shot.

My question is, for those who have been using 2 for some time what are the features or areas I should be looking at first?

I know there's a bunch of new stuff in there but would like to target my learning to specific areas rather than go looking myself for a couple of weeks.

I realise this is 开发者_StackOverflowkinda lazy but I have tight deadlines here at work.


Have a look at Scott Guthries blog to get some ideas of the new things.


Strongly type Html Helpers.

No more "magic strings" to pass a property name into a helper means more compile time checking, less wasted time debugging.


XVal style validation attributes that can automatically generate corresponding client side validators.


Single-project areas.

Provides a way to conceptually separate a large web application into logical "areas" while maintaining the integrity of a single web application.


Areas!!!

Using areas in a new publication CMS system to keep the admin controller/views seperate from the regular front end of the site.

The strongly typed helpers is good too. (See @womp's answer)

Scot Gu's Blog Post on MVC 2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜