Top Banner
Introduction to ASP.NET MVC Eng. Khaled Musaied Oct 2010
15
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 1. Introduction to ASP.NET MVC
    Eng. KhaledMusaied
    Oct 2010

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