180 likes | 379 Views
Getting Started with ASP.NET MVC 4. Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer. Meet Jon Galloway | @ jongalloway. Windows Azure Technical Evangelist Focused on ASP.NET MVC http :// weblogs.asp.net/jgalloway
E N D
Getting Started with ASP.NET MVC 4 Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer
Meet Jon Galloway | @jongalloway Windows Azure Technical Evangelist Focused on ASP.NET MVC http://weblogs.asp.net/jgalloway Web development on Microsoft platform since late '90s Ex-submariner; Showcase Showdown winner “Price is Right” Popular Author and Conference Speaker WroxProfessional MVC 4; MVC Music Store tutorial Virtual ASP.NET MVC Conference (mvcConf) World wide Web Camps speaker Herding Code podcast (http://herdingcode.com)
Meet Christopher Harrison | @geektrainer • Head Geek, GeekTrainer • Specializes in ASP.NET, SharePoint and SQL Server • Microsoft Certified Trainer • Over 14 years experience • Regular presenter at TechEd • Periodic blogger • Certification advocate • Marathoner, husband, father of one four legged child
Setting Expectations • Target Audience • New to MVC 4 • Considering taking the 70-486 Exam • Suggested Prerequisites/Supporting Material • Microsoft Official Course 20486 • Developing ASP.NET MVC 4 Web Applications
Join the MVA Community! • Microsoft Virtual Academy • Free online learning tailored for IT Pros and Developers • Over 1M registered users • Up-to-date, relevant training on variety of Microsoft products • “Earn while you learn!” • Get 50 MVA Points for this event! • Visit http://aka.ms/MVA-Voucher • Enter this code: ASPNET-MVC4 (expires 10/18/2013)
01 | Introduction to MVC Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer
Module Overview • Overview of ASP.NET 4.0 • Topic Two • Topic Three
Overview of ASP.NET 4.5 • Web Pages Applications Web Forms Applications MVC Applications Shared ASP.NET Features
Web Pages Applications • Web Matrix or Visual Studio • Code in .CSHTML files • Precise Control of HTML <h2>Special Offers</h2> <p>Get the best possible value on Northwind specialty foods by taking advantage of these offers:</p> @foreach (var item in offers) { <divclass="offer-card"> <divclass="offer-picture"> @if (!String.IsNullOrEmpty(item.PhotoUrl)){ <imgsrc="@Href(item.PhotoUrl) alt="@item.Title"/> } </div> </div> }
Web Forms Applications • Visual Studio only • Code in .aspx files and code-behind files • Create a UI by dragging controls onto a page • Controls provide rich properties and events • Bind controls to data
MVC Applications • Models encapsulate objects and data • Views generate the user interface • Controllers interact with user actions • Visual Studio only • Code in .cshtml and .cs files • Precise control of HTML and URLs
Shared ASP.NET Features • Configuration • Authentication • Membership and Roles • State Management • Caching
Lesson 3: Introduction to ASP.NET MVC 4 • Models, Views, and Controllers Demonstration: How to Explore an MVC Application New Features of ASP.NET MVC 4
Models, Views, and Controllers SQL View Model Database Controller Web Server HTTP Browser
New Features of ASP.NET MVC 4 • ASP.NET Web API • Mobile Features • Display Modes • Asynchronous Controllers • OAuth and OpenID • Bundling and Minification
Demonstration: Hello, MVC In this demonstration, you will see how to: • Create a new project • Discuss the basics of the moving parts • Introduce MVC conventions • “See the Actors”