24
ASP.NET MVC Shay Friedman [email protected] http://IronShay.com @ironshay

ASP.NET MVC

Embed Size (px)

DESCRIPTION

An introduction to ASP.NET MVC presentation. Originally presented on the Epicenter 2010 conference.

Citation preview

Page 1: ASP.NET MVC

ASP.NET MVC

Shay Friedman

[email protected]

http://IronShay.com

@ironshay

Page 7: ASP.NET MVC

Total line count: 2,359 lines

Page 8: ASP.NET MVC
Page 10: ASP.NET MVC

ASP.NET MVC Shay Friedman

Dynamic Languages Leader

[email protected] http://IronShay.com

@ironshay

Page 11: ASP.NET MVC

Agenda • What?

• Why?

• How?

• Where?

• The road ahead – V3

• Q&A

• Summary

Page 12: ASP.NET MVC

What? • New project type of ASP.NET

• Current version: ASP.NET MVC 2

• Open source (MS-PL)

• An option

Page 13: ASP.NET MVC

Why? • Separation of Concerns

• Testability

• Full control over markup

• Clean URLs

• Same providers

• Extensibility

Page 14: ASP.NET MVC

Request Flow

Step 1 Incoming request directed to Controller

1

Controller Request

Page 15: ASP.NET MVC

Request Flow

Step 2

Controller processes request and gets/forms a data Model

1 2

Controller Request

Model

Page 16: ASP.NET MVC

Request Flow

Step 3

Model is passed to View

1 2

Controller

Model

Request

Model

View

3

Page 17: ASP.NET MVC

Request Flow

Step 4

View transforms Model into appropriate output format

1 2

3

Controller

Model

Request

Model

4

View

1 2

Controller

Model

Request

Model

View

3

Page 18: ASP.NET MVC

Request Flow

Step 5

Response is rendered

1 2

4

3

Controller

Model

View Response

5

Request

Model

Page 19: ASP.NET MVC

How?

Page 20: ASP.NET MVC

The Road Ahead - V3 • Better productivity

• Improved AJAX support

• Enhanced extensibility

• Faster than ever

Page 21: ASP.NET MVC

Resources • ASP.NET MVC:

http://asp.net/mvc

• Forums:

http://forums.asp.net/1146.aspx

• MVC Contrib: http://mvccontrib.codeplex.com/

Page 22: ASP.NET MVC

Q&A

Page 23: ASP.NET MVC

Summary • What?

• Why?

• How?

• Where?

• V3

Page 24: ASP.NET MVC

Thank You!

Shay Friedman [email protected]

http://IronShay.com

@ironshay