I know there are lots of design patterns (facade, singleton, decorator, etc...) but I'm reading about ASP.NET MVC
and I'm about two sentences into the 'Intro' and I'm already confused.
The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications.
I don't understand what that means. I'm assuming ASP.NET MVC is going to force or encourage a Model-View-Controller pattern, but what pattern is ASP.NET?
ASP.NET Web Forms is a web application framework and one of several programming models supported by the Microsoft ASP.NET technology. Web Forms applications can be written in any programming language which supports the Common Language Runtime, such as C# or Visual Basic.
In an ASP.NET Web Forms application, you use data-bound controls to automate the presentation or input of data in web page UI elements such as tables and text boxes and drop-down lists. Membership- ASP.NET Identity stores your users' credentials in a database created by the application.
Asp.Net is Page-Controller pattern. The request is handled by various events in the code behind of the Page.
Asp.Net Mvc uses Model-View-Controller pattern in which request is handled by the Controller which interacts with Model and then Renders a View.
Update: More info about Page Controller.
http://martinfowler.com/eaaCatalog/pageController.html
Good day,
Link: http://haacked.com/archive/2008/06/16/everything-you-wanted-to-know-about-mvc-and-mvp-but.aspx
Classic ASP.NET uses the MVP pattern btw :)
It should answer your question!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With