10
MVC Greg Phelps Trent Spangler

MVC Greg Phelps Trent Spangler. AGENDA What is MVC Web Forms vs MVC Example Learn More!

Embed Size (px)

Citation preview

Page 1: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

MVCGreg Phelps

Trent Spangler

Page 2: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

AGENDA

What is MVC Web Forms vs MVC Example Learn More!

Page 3: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

Model:

The business rules, logic, and data.

Controller:

Handles the user interaction and input logic.Example: procedures, methods, functions

View:

Representation of model data.Examples: any user interface, web page, application

Page 4: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

WEB FORMS vs MVC?

Page 5: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

WEB FORMS (PROS)

Rapid Application Development (RAD)• Drag and drop controls

• Mechanisms behind controls and pages are hidden

Maturity• Smaller learning curve for developers

• More robust legacy framework

Page 6: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

WEB FORMS (CONS)

Less control over html produced due to RAD

Page 7: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

MVC (PROS)

“Separation of Concerns”, encapsulation, & modularity

Multiple forms on one page*

Similar to other non-Microsoft frameworks

Test Driven Development is facilitated

Page 8: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

MVC (CONS)

Developer needs to be fairly competent in HTML and CSS

The Views are HTML structures that are written from scratch by the developer

MVC is relatively new Higher cost Bigger learning curve

Page 9: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

EXAMPLE

Page 10: MVC Greg Phelps Trent Spangler. AGENDA  What is MVC  Web Forms vs MVC  Example  Learn More!

WHERE YOU CAN LEARN MORE!

www.asp.net/mvc