Advanced ASP.NET MVC3
Dec 12, 2014
Advanced ASP.NET MVC3
*Housekeeping
*Stuttering is a communication disorder involving disruptions, or “disfluencies,” in a person’s speech.
*Across all cultures, roughly 1% of people currently has a stuttering disorder.
*http://westutter.org/
Goals for this talk
•Brief Overview of new features
• Introduce MVC3 & MVC3 Tools Update
•MVC3 DEMO
•Scaffolding
•Logging
•Glimpse
•Telerik MVC Grid
•Navigation Demo
•QA
MVC3? MVC3 Tools Update?
MVC3 Released January 13th 2011
*Update to the MVC runtime
* Introduction of many new features
*NuGet
MVC3 Tools update released April 12th 2011
*Update to Visual Studio Tooling
*Updates included libraries
*Adds new libraries
*Does NOT change the MVC3 dll.
MVC3
New Features in ASP.NET MVC3
*New Razor View Engine* Dynamic View Models
* Client-Side Validation Enabled by Default
* JSON Model Binding Support
* Tooling Improvements (Project & View Dialog)
* Global Filters
*Model Validation Improvements.
* Request Validation Granularity
* Enhanced Dependency Injection Support
* Unobtrusive JQuery Ajax/Validation
* New ASP.NET Web Pages helper methods
* HTML Helpers Support HTML 5 Style attributes
* New ActionResult Types
Skills Transfer
MVC3 Tools Update
New Features in Tools Update *Does NOT upgrade MVC3 runtime!
*Intranet Project Template
*HTML 5 Semantic Markup
*Full Controller/View Scaffolding
*Jquery and JS Libraries are Nuget Packages
*Modernizer
*EF Code First pre-installed
Razor
*A new view Engine for ASP.NET MVC
*Clean and Concise Syntax. Fluid Workflow.
*Is NOT a new Language. Use existing C# and VB skills
*Unit Testable WITHOUT a Web Server or ASP.NET Runtime
*All Existing HTML Helpers work. Even Third Party helpers
Razor Syntax
Code blocks start with @ symbol. No end symbol required ( %>)
Web Forms Engine:
<h3> <%: Model.Name %> </h3>
Razor:
<h3> @Model.Name </h3>
http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
http://www.asp.net/webmatrix/tutorials/2-introduction-to-asp-net-web-programming-using-the-razor-syntax
Razor Syntax
DEMO
MVCScaffolding Demo
Logging!
*ELMAHError Logging Modules and Handlers
*Logging of nearly all unhandled exceptions.
*Web page to remotely view the entire log of recoded exception
*Email Notification
Glimpse
GetGlimpse.com
Telerik Grid Control
*http://demos.telerik.com/aspnet-mvc/
* Grid Control
*Out of the box support for Sorting, Filtering
*Out of the box paging support
*Out of the box ajax support
*Very little javascript you have to write!
Navigation Demo
What did we just talk about?
•Brief Overview of new features
• Introduce MVC3 & MVC3 Tools Update
•MVC3 DEMO
• Scaffolding
• Logging
•Glimpse
• Telerik MVC Grid
•Navigation Demo
•QA
Thank you!