Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to ASP.NET MVC

Similar presentations


Presentation on theme: "Introduction to ASP.NET MVC"— Presentation transcript:

1 Introduction to ASP.NET MVC
Nadeem Shehzad

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
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
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
URL Regular Expression

14 Demos Hello World Demo. Single Form Demo. Two Forms Demo.
JavaScript Demo. Routers Demo.

15 Q / A


Download ppt "Introduction to ASP.NET MVC"

Similar presentations


Ads by Google