1 / 18

Getting Started with ASP.NET MVC 4

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

Télécharger la présentation

Getting Started with ASP.NET MVC 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Getting Started with ASP.NET MVC 4 Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer

  2. 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)

  3. 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

  4. Course Topics

  5. 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

  6. 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)

  7. 01 | Introduction to MVC Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer

  8. Module Overview • Overview of ASP.NET 4.0 • Topic Two • Topic Three

  9. Overview of ASP.NET 4.5 • Web Pages Applications Web Forms Applications MVC Applications Shared ASP.NET Features

  10. 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> }

  11. 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

  12. 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

  13. Shared ASP.NET Features • Configuration • Authentication • Membership and Roles • State Management • Caching

  14. 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

  15. Models, Views, and Controllers SQL View Model Database Controller Web Server HTTP Browser

  16. New Features of ASP.NET MVC 4 • ASP.NET Web API • Mobile Features • Display Modes • Asynchronous Controllers • OAuth and OpenID • Bundling and Minification

  17. 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”

More Related