120 likes | 283 Views
INDIA │ 18-20 august 2010. virtual techdays. WHAT’S NEW IN ASP.NET MVC 3 PREVIEW 1. Ashic Mahtab │ Software Architect, www.earthware.co.uk. INDIA │ 18-20 august 2010. virtual techdays. View Improvements Controller Improvements Validation Improvements
E N D
INDIA │ 18-20 august2010 virtual techdays WHAT’S NEW IN ASP.NET MVC 3 PREVIEW 1 Ashic Mahtab │ Software Architect, www.earthware.co.uk
INDIA │ 18-20 august2010 virtual techdays • View Improvements • Controller Improvements • Validation Improvements • Dependency Injection Improvements S E S S I O N A G E N D A
INDIA │ 18-20 august2010 virtual techdays • Add View Dialog • Razor View Engine View Improvements
INDIA │ 18-20 august2010 virtual techdays DEMO: View Improvements in ASP.NET MVC 3 Preview 1
INDIA │ 18-20 august2010 virtual techdays • Global Filters • Dynamic ViewModel • New ActionResultTypes • HttpNotFound • PermanentRedirect • StatusCode • Json Binding • Future Improvements: Unobtrusive Javascript, Helper Support for jQuery Validation Controller Improvements
INDIA │ 18-20 august2010 virtual techdays DEMO: Controller Improvements in ASP.NET MVC 3 Preview 1
INDIA │ 18-20 august2010 virtual techdays • HonoursDataAnnotations Attributes like DisplayAttribute • .NET 4.0 ValidationAttribute has new IsValid overload that passes in current ValidationContext • IValidatableObject simplifies validation with multiple properties • IClientValidateable interface make creating ValidationAttributes with client side behaviour much simpler. • IMetadaAware interface lets you contribute to the ModelMetadata creation process Validation Improvements
INDIA │ 18-20 august2010 virtual techdays DEMO: Validation Improvements in ASP.NET MVC 3 Preview 1
INDIA │ 18-20 august2010 virtual techdays • In Preview 1: • Controllers (registering & injecting controller factories, injecting controllers) • Views (registering & injecting view engines, injecting dependencies into view pages) • Action Filters (locating & injecting filters) • In Future: • Model Binders (registering & injecting) • Value Providers (registering & injecting) • Validation Providers (registering & injecting) • Model metadata Providers (registering & injecting) • Limitations Dependency Injection Improvements
INDIA │ 18-20 august2010 virtual techdays DEMO: Dependency Injection in ASP.NET MVC 3 Preview 1
INDIA │ 18-20 august2010 virtual techdays • Download ASP.NET MVC 3 Preview 1 • Binaries: http://bit.ly/ahs64M • Source: http://aspnet.codeplex.com/releases/view/50092 • Blogs • http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx • http://bradwilson.typepad.com/blog/2010/07/service-location-pt1-introduction.html • Podcasts / Videos • Scott Hanselman: http://bit.ly/9bJ0JP • Hanselminutes with Phil Haack: http://bit.ly/dxRTxG • www.asp.net and http://forums.asp.net RESOURCES
THANKS│18-20 august2010 virtual techdays ashic@live.com │ http://www.heartysoft.com