Sei sulla pagina 1di 18

Overview of MVC

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

Wrox Professional 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

Course Topics
MVC4 Jump Start
01 | Overview of MVC
02 | Developing ASP.NET MVC 4
Models
03 | Developing ASP.NET MVC 4
Controllers
04 | Developing ASP.NET MVC 4
Views

05 | Integrating JavaScript and MVC


06 | Implementing Web APIs
07 | Deploying ASP.NET MVC Site
08 | Whats Next and Resources

Setting Expectations
Target Audience
New to MVC 4
Considering taking the 70-486 Exam

Additional 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: ASPNETMVC4 (expires 10/18/2013)

Click to edit
Master subtitle
style

01 | Overview of MVC4
Jon Galloway | Tech Evangelist
Christopher Harrison | Head Geek

Module Overview
Overview of ASP.NET 4.5
Introduction to MVC 4

Lesson 1: Overview of ASP.NET 4.5


Web Pages Applications
Web Forms Applications
MVC Applications
One ASP.NET
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) {
<div class="offer-card">
<div class="offer-picture">
@if (!String.IsNullOrEmpty(item.PhotoUrl)){
<img src="@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

One ASP.NET: A Framework for us all

Sites
Web
Web
Form
Pages
s

Servic
es

Single Page Apps


MVC

ASP.NET

Web
API

Signa
lR

Shared ASP.NET Features


Configuration
Membership and Roles
State Management
Caching

Lesson 2: Introduction to MVC 4


Models, Views and Controllers
Demonstration

Models, Views, and Controllers


What does MVC look like?
Request

Controller

Response

Controller
Retrieves Model
Does Stuff

Model

View

View
Visually represents
the model

DEMO
Exploring MVC

2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered
trademarks and/or trademarks in the U.S. and/or other countries. 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.

Potrebbero piacerti anche