Your SlideShare is downloading. ×
0
MVC3 Development with Visual Studio 2010<br />Harish Ranganathan					@ranganh<br />Senior Developer Evangelist<br />Micros...
A quick round trip<br />MVC v 1.0 released in 2009 <br />MVC 2 released in 2010<br />MVC 3 released in Jan 2011 <br />MVC ...
What’s new in ASP.NET MVC 3<br />Razor View Engine<br />Multiple View Engine Support<br />Validation Improvements<br />Dyn...
What’s new in ASP.NET MVC 3<br />Razor View Engine<br />Multiple View Engine Support<br />Validation Improvements<br />Dyn...
Upgrading<br />ASP.NET MVC 3 Application Upgrader<br />tinyurl.com/upgrademvc3<br />
demo<br />Quick overview of MVC3 and Razor<br />
Multiple View Engine Support<br />
Multiple View Engine Support<br />protected void Application_Start()<br />{<br />ViewEngines.Engines.Add(newSparkViewFacto...
Razor<br />Clean & Concise<br />Based on Existing Languages<br />Intellisense<br />Code Colorization<br />Unit Testing Sup...
Syntax Comparison<br />Web Forms<br />6 transitions<br /><ul><br /><% for (int i = 0; i < 10; i++) {%><br />    <li><%=i %...
Layouts<br />View<br />Layout<br /><html><br /><head><br />	<title>Title<title><br /></head><br /><body><br />	@RenderSect...
Web Forms to Razor<br />Open Source Razor Converter<br />github.com/telerik/razor-converter<br />
demo<br />Razor Views<br />
Global Filters<br />No longer need attributes<br />Applies to all actions on all controllers<br />
Global Filters<br />protected void Application_Start()<br />{<br />GlobalFilters.Filters.Add(new MyActionFilterAttribute()...
demo<br />Global Action Filters<br />
Dynamic ViewBag<br />Accessible via properties<br />Properties map to ViewData entries<br />Late-bound<br />
Dynamic ViewBag<br /><head><br /><title>@ViewBag.Title<title><br /></head><br />
demo<br />Dynamic ViewBag<br />
JavaScript and AJAX<br />JSON Binding<br />jQuery Validation<br />Unobstrusive JavaScript<br />Separation of Presentation ...
Client Validation<br />web.config<br /><configuration>    <br /><appSettings>        <br />	<add key=“ClientValidationEnab...
demo<br />Validations<br />
Resources<br />ASP.NET MVC 3<br />http://www.asp.net/mvc/mvc3<br />Scott Gu’s Blog<br />http://weblogs.asp.net/scottgu<br ...
Contacts<br />Blog<br />http://geekswithblogs.net/ranganh<br />Twitter<br />@ranganh<br />
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be...
Upcoming SlideShare
Loading in...5
×

MVC3 Development with visual studio 2010

4,374

Published on

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,374
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
97
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • I have a demo for adding new views to this dialog.
  • I have a demo for adding new views to this dialog.
  • ASP.NET MVC 3 supports global action filters. Global action filters are applied to all actions in web application. For example, you can use global action filters for common security checks. They are registered in the global.asax file of the application. Therefore, you can run a filter for all controllers or controller actions, without adding the attribute to all of them. Additionally, you can run a filter only if certain conditions apply.
  • Transcript of "MVC3 Development with visual studio 2010"

    1. 1. MVC3 Development with Visual Studio 2010<br />Harish Ranganathan @ranganh<br />Senior Developer Evangelist<br />Microsoft Corporation, India<br />
    2. 2. A quick round trip<br />MVC v 1.0 released in 2009 <br />MVC 2 released in 2010<br />MVC 3 released in Jan 2011 <br />MVC 3 Tools update in April 2011<br />
    3. 3. What’s new in ASP.NET MVC 3<br />Razor View Engine<br />Multiple View Engine Support<br />Validation Improvements<br />Dynamic ViewBag<br />Global Filters<br />New ActionResults<br />Project Dialog Improvements<br />VBHTML Support<br />Task-based Helpers<br />Improved Dependency Injection<br />Porting MVC Script Libraries to jQuery<br />Granular ValidateInput<br />Add View Dialog Improvements<br />Project Dialog Extensibility Improvements<br />Improved Caching Support<br />JSON Binding Support<br />
    4. 4. What’s new in ASP.NET MVC 3<br />Razor View Engine<br />Multiple View Engine Support<br />Validation Improvements<br />Dynamic ViewBag<br />Global Filters<br />New ActionResults<br />Project Dialog Improvements<br />VBHTML Support<br />Task-based Helpers<br />Improved Dependency Injection<br />Porting MVC Script Libraries to jQuery<br />Granular ValidateInput<br />Add View Dialog Improvements<br />Project Dialog Extensibility Improvements<br />Improved Caching Support<br />JSON Binding Support<br />
    5. 5. Upgrading<br />ASP.NET MVC 3 Application Upgrader<br />tinyurl.com/upgrademvc3<br />
    6. 6. demo<br />Quick overview of MVC3 and Razor<br />
    7. 7. Multiple View Engine Support<br />
    8. 8. Multiple View Engine Support<br />protected void Application_Start()<br />{<br />ViewEngines.Engines.Add(newSparkViewFactory());<br /> …<br />}<br />
    9. 9. Razor<br />Clean & Concise<br />Based on Existing Languages<br />Intellisense<br />Code Colorization<br />Unit Testing Support<br />
    10. 10. Syntax Comparison<br />Web Forms<br />6 transitions<br /><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 />{ <br /> <li>@i</li><br />}<br /></ul><br />Razor<br />2 transitions<br />
    11. 11. Layouts<br />View<br />Layout<br /><html><br /><head><br /> <title>Title<title><br /></head><br /><body><br /> @RenderSection("Menu")<br /> @RenderBody()<br /></body><br /></html><br />@{<br /> Layout="~/Views/Shared/_Layout.cshtml";<br />}<br />@section Menu {<br /> <ul id="pageMenu"><br /> <li>Item 1</li><br /> <li>Item 2</li><br /></ul><br />}<br />
    12. 12. Web Forms to Razor<br />Open Source Razor Converter<br />github.com/telerik/razor-converter<br />
    13. 13. demo<br />Razor Views<br />
    14. 14. Global Filters<br />No longer need attributes<br />Applies to all actions on all controllers<br />
    15. 15. Global Filters<br />protected void Application_Start()<br />{<br />GlobalFilters.Filters.Add(new MyActionFilterAttribute());<br /> …<br />}<br />
    16. 16. demo<br />Global Action Filters<br />
    17. 17. Dynamic ViewBag<br />Accessible via properties<br />Properties map to ViewData entries<br />Late-bound<br />
    18. 18. Dynamic ViewBag<br /><head><br /><title>@ViewBag.Title<title><br /></head><br />
    19. 19. demo<br />Dynamic ViewBag<br />
    20. 20. JavaScript and AJAX<br />JSON Binding<br />jQuery Validation<br />Unobstrusive JavaScript<br />Separation of Presentation and Content<br />No errors if AJAX isn’t supported<br />RemoteAttribute<br />
    21. 21. Client Validation<br />web.config<br /><configuration> <br /><appSettings> <br /> <add key=“ClientValidationEnabled" value="true"/> </appSettings><br /></configuration><br />code<br />HtmlHelper.ClientValidationEnabled = true;<br />
    22. 22. demo<br />Validations<br />
    23. 23. Resources<br />ASP.NET MVC 3<br />http://www.asp.net/mvc/mvc3<br />Scott Gu’s Blog<br />http://weblogs.asp.net/scottgu<br />Phil Haack’s Blog<br />http://haacked.com/<br />
    24. 24. Contacts<br />Blog<br />http://geekswithblogs.net/ranganh<br />Twitter<br />@ranganh<br />
    25. 25. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.<br />The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.<br />
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×