TECH ED ON THE ROAD<br />.<br />
EXPLORING ASP.NET MVC 3<br />Shravan Kumar<br />http://theshravan.net<br />Thomson Reuters<br />
Agenda<br />What's new in ASP.NET MVC3 ?<br />What's new in ASP.NET MVC3 Tools Update?<br />
Multiple View Engine Support<br /><%= ASPX %><br />@Razor<br />
The RazorView Engine<br /><ul><li>Razor syntax is clean and concise
Requiring a minimum number of keystrokes
Razor is easy to learn
Visual Studio includes IntelliSense and code colorization for Razor syntax.</li></li></ul><li><ul><br /><% for (int i = 0;...
Demo<br />Razor<br />@{new ViewEngine();}<br />
Controller Improvements<br /><ul><li>Global Action Filters
New "ViewBag" Property
New "ActionResult" Types</li></li></ul><li>Demo<br />Controller Improvements<br />
Model Validation Improvements<br /><ul><li>"DataAnnotations" Metadata Attributes
"ValidationAttribute" Class
Validation Interfaces
IValidatableObject
IClientValidatable</li></li></ul><li>JavaScript and Ajax Improvements<br /><ul><li>Ajax and validation helpers in MVC 3 us...
Client-Side Validation Enabled by Default
Remote Validator
JSON Binding Support</li></li></ul><li>Demo<br />Model Validation and JavaScript                Improvements<br />
Dependency Injection Improvements<br />
Demo<br />Dependency Injection Improvements<br />
What else?<br /><ul><li>NuGet Integration
Upcoming SlideShare
Loading in …5
×

ASP.NET MVC 3

4,099 views

Published on

Exploring ASP.NET MVC 3 in TechEd on The Road in Microsoft IDC Hyderabad

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,099
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
196
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ASP.NET MVC 3

  1. 1. TECH ED ON THE ROAD<br />.<br />
  2. 2. EXPLORING ASP.NET MVC 3<br />Shravan Kumar<br />http://theshravan.net<br />Thomson Reuters<br />
  3. 3. Agenda<br />What's new in ASP.NET MVC3 ?<br />What's new in ASP.NET MVC3 Tools Update?<br />
  4. 4. Multiple View Engine Support<br /><%= ASPX %><br />@Razor<br />
  5. 5. The RazorView Engine<br /><ul><li>Razor syntax is clean and concise
  6. 6. Requiring a minimum number of keystrokes
  7. 7. Razor is easy to learn
  8. 8. Visual Studio includes IntelliSense and code colorization for Razor syntax.</li></li></ul><li><ul><br /><% for (int i = 0; i < 10; i++) { %><br /> <li><% =i %></li><br /><% } %><br /></ul><br /><ul><br />@for (int i = 0; i < 10; i++) {<br /> <li>@i</li><br /> }<br /></ul><br />
  9. 9. Demo<br />Razor<br />@{new ViewEngine();}<br />
  10. 10. Controller Improvements<br /><ul><li>Global Action Filters
  11. 11. New "ViewBag" Property
  12. 12. New "ActionResult" Types</li></li></ul><li>Demo<br />Controller Improvements<br />
  13. 13. Model Validation Improvements<br /><ul><li>"DataAnnotations" Metadata Attributes
  14. 14. "ValidationAttribute" Class
  15. 15. Validation Interfaces
  16. 16. IValidatableObject
  17. 17. IClientValidatable</li></li></ul><li>JavaScript and Ajax Improvements<br /><ul><li>Ajax and validation helpers in MVC 3 use an unobtrusive JavaScript approach.
  18. 18. Client-Side Validation Enabled by Default
  19. 19. Remote Validator
  20. 20. JSON Binding Support</li></li></ul><li>Demo<br />Model Validation and JavaScript Improvements<br />
  21. 21. Dependency Injection Improvements<br />
  22. 22. Demo<br />Dependency Injection Improvements<br />
  23. 23. What else?<br /><ul><li>NuGet Integration
  24. 24. Partial-Page Output Caching
  25. 25. Granular Control over Request Validation
  26. 26. Sessionless Controller Support</li></li></ul><li>ASP.NET MVC 3 Tools Update<br /><ul><li>ASP.NET MVC 3 RTM (January 13, 2011)
  27. 27. ASP.NET MVC 3 Tools Update (April 12, 2011)</li></ul>NO RUNTIME CHANGES IN ASP.NET MVC 3 TOOLS UPDATE<br />
  28. 28. ASP.NET MVC 3 (before)<br />
  29. 29. ASP.NET MVC 3 (after)<br />
  30. 30. What’s new inAsp.NET MVC 3 tools update<br /><ul><li>Scaffolding with extensibility via NuGet
  31. 31. Intranet Project Template
  32. 32. HTML 5 Enabled Project Templates
  33. 33. Pre-Installed NuGet Packages
  34. 34. Modernizr
  35. 35. EF Code First
  36. 36. jQuery 1.5.1
  37. 37. jQuery Validation 1.8.0
  38. 38. jQuery UI 1.8.11</li></li></ul><li>Refer to:<br /><ul><li>http://asp.net/mvc/mvc3/
  39. 39. http://haacked.com
  40. 40. http://weblogs.asp.net/scottgu/
  41. 41. http://hanselman.com/</li></li></ul><li>Thank You!<br />
  42. 42. shravan.kasagoni@live.com@techieshravanhttp://theshravan.net<br />
  43. 43. No Questions<br />

×