4. The Downside of ASP.NET Very complex page pipeline engine Difficult to maintain Impossible to test Difficulty partially arises from simulating Context, Request, Response, and Session objects. The cryptic control ids and sensitivities of ViewState Overly mix business and presentation logic Event-driven model
7. ASP.NET MVCIS…… New ASP.NET application development style Another is“ASP.NET Web Form” Fill the gaps of ASP.NET WebForm New choice Full control over URLs Full control over HTML Easier to test (TDD) Flexible, extendable, easily replaced
8. ASP.NETMVCIS NOT…… The substitute of 3-tier structure ASP.NET WebForm’ssubstitute ASP.NET Web Formpromotion version ASP.NET Web Form 4.0 Fit RAD Fit every project Fit everyone
11. ASP.NET MVCFramework Structure ASP.NET Abstractions (System.Web.Abstractions.dll) ASP.NET Routing (System.Web.Routing.dll) ASP.NET MVC (System.Web.Mvc.dll)
16. ASP.NET Routing URL Patterns Setting Default Values for URL Parameters Adding Constraints to Routes Scenarios When Routing Is Not Applied How URLs Are Matched to Routes Accessing URL Parameters in a Routed Page ASP.NET Routing and Security ASP.NET Routing versus URL Rewriting
18. Controllers & Action Receiving input QueryString, Request.Form, FormCollection, Custome(IModelBinding) Filter Aysncaction Producing output Action Result, View Data, View Model How defines End with the word Controller Inherit from System.Web.Mvc.Controller (or implement Icontroller Contain public methods that return ActionResult
39. Lots of new helper functions, utilities, and API enhancements
40.
41. Async Controllers Support Change the way of request handling Decide whether the action is async or not Execute an action ModelBinder support Limitations and drawbacks
42. Recourse Nice projects to learn MVC http://nerddinner.codeplex.com/ [Video]Creating NerdDinner.com with MVC Oxite 2: An official CMS ProductMvcContrib: a Codeplex Foundation Project http://mvccontrib.codeplex.com/ http://tailspintravel.codeplex.com http://mvcsitemap.codeplex.com/ http://mvcmembership.codeplex.com/http://code.msdn.microsoft.com/aspnetmvcsamples
43. IT is over,Thanks Your Feedback is Important! Please fill out the session evaluation form provided and drop it off with the staff at the exit.