Introduction to ASP.NET MVC

10,392 views

Published on

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,392
On SlideShare
0
From Embeds
0
Number of Embeds
980
Actions
Shares
0
Downloads
534
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

Introduction to ASP.NET MVC

  1. 1. Introduction to ASP.NET MVC<br />Eng. KhaledMusaied<br />Oct 2010<br />
  2. 2. Agenda<br />What is ASP.NET MVC?<br />ASP.NET MVC Power.<br />ASP.NET Web Forms vs. ASP.NET MVC<br />ASP.NET MVC Parts:<br />Model<br />Controller<br />View<br />Router<br />
  3. 3. What is ASP.NET MVC?<br />New Web Application (Presentation Layer).<br />Based on Model-View-Controller Design Pattern.<br />
  4. 4. ASP.NET MVC Power<br />Complete control on HTML.<br />Smooth Web 2.0 Development .<br />SEO-friendly URLs.<br />Easy Test Driven Development (TDD).<br />Stateless. <br />
  5. 5. ASP.NET Web Forms vs. ASP.NET MVC<br />ASP.NET Web Forms <br />Advantages:<br />Fast Development.<br />Windows Application Development Experience.<br />Event Driven.<br />View State.<br />Web Controls.<br />Disadvantages:<br />Hard to Control HTML.<br />Unfriendly URLs.<br />Single “Form” tag in single page.<br />
  6. 6. ASP.NET Web Forms vs. ASP.NET MVC<br />ASP.NET MVC<br />Advantages:<br />Model-View-Controller Design Pattern.<br />Web Application Development Experience.<br />Easy to control HTML.<br />Friendly URLs (SEO).<br />Disadvantages:<br />Stateless. <br />More Development Time.<br />
  7. 7. ASP.NET MVC Parts<br />Model ( Data Object).<br />Controller (Control Application Actions).<br />View (Renders HTML).<br />Router (URL Mapping).<br />
  8. 8. Model<br />
  9. 9. Controller<br />
  10. 10. View<br />
  11. 11. View output (Web Forms)<br />
  12. 12. View output (MVC)<br />Clean HTML<br />
  13. 13. Routers<br />http://yoursite.com/Security/Login<br />Default Value<br />http://yoursite.com/Login<br />http://yoursite.com/Products/Details/58<br />URL<br />http://yoursite.com/Products/58<br />Regular Expression<br />http://yoursite.com/Customers/Details.aspx?id=21<br />http://yoursite.com/Customers/Details/21<br />
  14. 14. Demos<br />Hello World Demo.<br />Single Form Demo.<br />Two Forms Demo.<br />JavaScript Demo.<br />Routers Demo.<br />
  15. 15. Th@nk$<br />Q / A<br />

×