1 / 11

.NET Dojo

.NET Dojo. ASP.NET MVC. Ben Scheirman http://flux88.com Principal Consultant Sogeti. ASP.NET MVC. Alternative to WebForms Automatic vs. Manual Transmission You’ll like it IF….. WebForms isn’t going away. Schedule. ASP.NET MVC Basics Hello World Lab Blog Demo MvcContrib

gary
Download Presentation

.NET Dojo

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. .NET Dojo ASP.NET MVC Ben Scheirman http://flux88.com Principal Consultant Sogeti

  2. ASP.NET MVC • Alternative to WebForms • Automatic vs. Manual Transmission • You’ll like it IF….. • WebForms isn’t going away

  3. Schedule • ASP.NET MVC Basics • Hello World Lab • Blog Demo • MvcContrib • Inversion of Control • Unit Testing Lab • Ajax • Wrapping up the Blog • Q & A

  4. ASP.NET MVC Basics Model Controller View

  5. ASP.NET MVC Basics

  6. What is a route? {controller}/{action}/{id} {year} / {month} / {day} => Controller: Posts => Action: List => Constraints year:\d{4} month:\d{2} day:\d{2} ? products / edit / 5 customers / list users / new 2008/08/28 2008/08 2008

  7. What about Controller? ? Route values: Controller: “customers” Action: “list” public class CustomersController : Controller { public ActionResult List() { ... } }

  8. Rendering the view? public ActionResult List() { string message = “a message for the view”; return View(“list”, message); } ? //List.aspx <div> The message is <%= ViewData.Model %> </div>

  9. Hello World LAB Open: Labs\1-Hello World\NET Dojo - Lab 1 - Hello World.docx

  10. Blog Demo

  11. Hello World LAB Open: Labs\1-Hello World\NET Dojo - Lab 1 - Hello World.docx

More Related