Asp.Net MVC overview

Post on 24-May-2015

622 views 0 download

Tags:

Transcript of Asp.Net MVC overview

Valdis Iljuconoks

Technical Fellow, Software ArchitectVisual Studio ALM evangelistMicrosoft MVP

http://www.tech-fellow.lv | @tech_fellow

Geta AS, Tech Fellow Consulting, Latvian .Net UGvaldis.iljuconoks@outlook.com

MVC

MVC

odel

iew

ontroller

Model

Implements the logic of application’s data domain

View

Display applications user interface

Controller

Handle user interactionWork with the model

Controller is

main entry point in application for

the user

CTP, December 2007

1.0, March 2009

2.0, March 2010

3.0 RC, November 2010

3.0, January 2011

4.0 RC, May 2012

4.0, August 2012

sits over standardAsp.Net technology stack

Asp.Net

(Request, Response, Master Pages,Session, Cookies, QueryString,)

Web Forms MVCWeb Pages

Benefits

Clear separationTest-driven developmentFull control over HTML

Friendly URLs…

Web Routing

Friendly URLs

c:\inetpub\wwwroot\site\policies.aspxhttp://server/site/policies.aspx?id=5

http://server/site/policies/view/5

{controller}/{action}/{id}

Convention

over configuration

http://server/product/edit

Action

Controller

Folder View

routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional });

Demo

Hello world!

Action attributes

View Engines

BrailNDjangoNHaml

NVelocitySharpTiles

SparkStringTemplate

XSLTNaked Objects

Razor

Meta data

Model validation

Filters

Performance tracking

Display Templates

Customizing look & feel

Display Modes

Developing for mobile

Benefits

Clear separationTest-driven developmentFull control over HTML

Friendly URLs…

?

Valdis Iljuconoks

Technical Fellow, Software ArchitectVisual Studio ALM evangelistMicrosoft MVP

http://www.tech-fellow.lv | @tech_fellow

Geta AS, Tech Fellow Consulting, Latvian .Net UGvaldis.iljuconoks@outlook.com