1 / 8

MVC - Common pitfalls and how to resolve them

MVC - Common pitfalls and how to resolve them. Andrei Ignat , C# MVP http://msprogrammer.serviciipeweb.ro / Ubisoft Romania. Huge thanks to our sponsors !. Agenda. What is MVC? Routing and slug routing Validation Ajax requests and error handling Testing : ViewModels , browser.

ansel
Télécharger la présentation

MVC - Common pitfalls and how to resolve them

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MVC - Common pitfalls and how to resolve them Andrei Ignat , C# MVP http://msprogrammer.serviciipeweb.ro/ Ubisoft Romania

  2. Hugethankstooursponsors!

  3. Agenda • What is MVC? • Routing and slug routing • Validation • Ajax requests and error handling • Testing : ViewModels, browser

  4. Routing and slug routing • Example of routing • Intercepting controller errors • Demo: • http://haacked.com/archive/2010/02/21/manipulating-action-method-parameters.aspx • Homework: http://www.jefclaes.be/2012/01/autocorrecting-unknown-actions-using.html

  5. Validation • Model validation • Unobtrusive • Ajax with partial views • Demo • Homework: Validation for a list.

  6. Ajax requests and error handling • Simple Ajax request • GET/POST • Demo • http://msprogrammer.serviciipeweb.ro/2011/12/05/jquery-ajax-request-and-mvcdetailed/ • Homework: Ajax for a list – see http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx

  7. Testing : ViewModels, browser • Test ViewModels • Mocking • Demo • Testing Browser • Demo: Selenium • Homework: Ajax test – HttpWebRequest.

  8. Thank you ! Andrei Ignat , C# MVP http://msprogrammer.serviciipeweb.ro/ ignatandrei@yahoo.com Q & A

More Related