Introduction To ASP - NET MVC
Introduction To ASP - NET MVC
NET MVC
Objectives
Understand the basics of the Model-ViewController pattern Explore the differences between ASP.NET Web forms and MVC applications Build a sample MVC application and explore its structure
Agenda
The Model-View-Controller Pattern Differences Between MVC and Web Forms Applications Building a Simple MVC Application with Visual Studio
Anatomy of a Request
HTTP Request HTML Response
View
Controller
Model
ASP.NET MVC
Microsofts newest Web development framework
Easy to implement design principles and patterns Integral part of ASP.NET
Extensibility
ASP.NET has a provider model MVC has a more powerful pluggable model Options
Use the default component Extend the default component Replace the default component
MVC Serves Methods, Not Files Huge difference File request: http://www.example.com/index.aspx?ID=5 Method request: http://www.example.com/Home/Details/5
Maps to Details action method Of Home controller Item ID of 5
Basic but fully functional MVC application Same as Internet template, but uses Windows authentication Sets up project structure but no controllers or models
Empty template
o
Learn More!
This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn more about MVC on SlideShare:
Working with Controllers and Actions in MVC