On which template are ASP.NET and MVC web forms presented? PageController, FrontController?

I am trying to understand ASP.NET WebForms and MVC in terms of understanding the design patterns used. Although MVC clearly looks like an implementation of FrontController, I'm not very sure about WebForms pages. Therefore, I would be grateful if anyone could help in resolving the following issues.

  • Is WebForms based on a PageController template?

  • Are Front Controller and Page Controller Modified Versions of MVC?

  • Can WebForms also be called a special case of MVC, where the distinction between the controller and the view is blurry?

Finally, are there good resources on the Internet that can provide a detailed link to this topic?

+3
source share
3 answers

Following the order of your questions:

1 // None. Web forms are based on the Smart Interface template, i.e. You control the application by recording event handlers. Smart UI has its own problems, but when it is completely based on the desktop, it works fine, in the sense that no significant “fiction” is included in the framework for its work. However, on the Internet, which works on HTTP without obsolescence, the main fantasy is introduced, essentially in the form of a ViewState, which contains the state of all controls when the page has been sent to the client browser. As a result, web forms introduce a complex level of complexity into your applications that exist only to support this ficiton. MVC eliminates this fiction.

: " , HTTP .

2//MVC HTTP. Front Controller, Page Controller, Page Controller Http, MVC HTTP-. , MVC , .

MVC , Webforms/Smart UI .

, , ASP.NET MVC ASP.NET HTTP " ", , , . , , , .

3//, , ! , - ui, MVC . , MVC ish (a la Dino Esposito), - ficiton. , ASP.NET MVC?

. , webforms mvc, - . " " - , , ( , ... Yuck!).

10 WizardController, - , . 3 webforms, -. .

+2

ASP.NET MVC Front Controller. ASP.NET WebForms Microsoft Windows Forms , , page controller, .

+4

, "" Microsoft.NET: " Dino Esposito Andrea Saltarello, Dino ASP.NET.

0

Source: https://habr.com/ru/post/1768373/


All Articles