developing great applications using asp.net mvc and asp.net ajax

27

Upload: tatham-oddie

Post on 15-Feb-2017

2.860 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Developing great applications using ASP.NET MVC and ASP.NET AJAX
Page 2: Developing great applications using ASP.NET MVC and ASP.NET AJAX

Developing great applications using ASP.NET MVC and ASP.NET AJAX

Tatham OddieMVPSenior Consultant, Readify

Page 3: Developing great applications using ASP.NET MVC and ASP.NET AJAX

What is this MVC thing anyway?

Page 4: Developing great applications using ASP.NET MVC and ASP.NET AJAX

PageModel

ViewModel Controller

Page Controller

Front Controller

Page 5: Developing great applications using ASP.NET MVC and ASP.NET AJAX

Page Controller

Front Controller

Page 6: Developing great applications using ASP.NET MVC and ASP.NET AJAX

How is it useful on the web?

Page 7: Developing great applications using ASP.NET MVC and ASP.NET AJAX

How do we use it?

Page 8: Developing great applications using ASP.NET MVC and ASP.NET AJAX

Other random cool bits ...

Page 9: Developing great applications using ASP.NET MVC and ASP.NET AJAX

System.Web.Routing

Page 10: Developing great applications using ASP.NET MVC and ASP.NET AJAX

public class MyRouteHandler : IRouteHandler

{

public IHttpHandler GetHttpHandler

(RequestContext requestContext)

{

throw new NotImplementedException();

}

}

Page 11: Developing great applications using ASP.NET MVC and ASP.NET AJAX

System.Web.Abstraction

Page 12: Developing great applications using ASP.NET MVC and ASP.NET AJAX

HttpContextBase

HttpContextWrapper : HttpContextBase

Page 13: Developing great applications using ASP.NET MVC and ASP.NET AJAX

HttpContextBase realContext =

new HttpContextWrapper

(HttpContext.Current);

Page 14: Developing great applications using ASP.NET MVC and ASP.NET AJAX

HttpContextBase mockContext =

new MyMockContext();

Page 15: Developing great applications using ASP.NET MVC and ASP.NET AJAX

IViewEngine

Page 16: Developing great applications using ASP.NET MVC and ASP.NET AJAX

WebFormsViewEngine : IViewEngine

Page 17: Developing great applications using ASP.NET MVC and ASP.NET AJAX

NVelocityViewEngine : IViewEngine

Page 18: Developing great applications using ASP.NET MVC and ASP.NET AJAX

Why couldn’t we do this already?

Page 19: Developing great applications using ASP.NET MVC and ASP.NET AJAX

We could.

Page 20: Developing great applications using ASP.NET MVC and ASP.NET AJAX

MonoRail.

Page 21: Developing great applications using ASP.NET MVC and ASP.NET AJAX

Why ASP.NET MVC then?

Page 22: Developing great applications using ASP.NET MVC and ASP.NET AJAX

When do we get it?

Page 23: Developing great applications using ASP.NET MVC and ASP.NET AJAX

AJAX

Page 24: Developing great applications using ASP.NET MVC and ASP.NET AJAX

This doesn’t exist yet ...

Page 25: Developing great applications using ASP.NET MVC and ASP.NET AJAX

... but that doesn’t need to stop you.

Page 26: Developing great applications using ASP.NET MVC and ASP.NET AJAX

http://[email protected]

Page 27: Developing great applications using ASP.NET MVC and ASP.NET AJAX

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.