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.
我知道有很多设计模式(外观,单身,装饰等等)但我正在阅读有关ASP.NET MVC的内容,我在“简介”中大约有两句话,我已经感到困惑了。
The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications.
ASP.NET MVC框架提供了用于创建Web应用程序的ASP.NET Web窗体模式的替代方法。
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 MVC将强制或鼓励模型 - 视图 - 控制器模式,但ASP.NET的模式是什么?
2 个解决方案
#1
9
Asp.Net is Page-Controller pattern. The request is handled by various events in the code behind of the Page.
Asp.Net是页面控制器模式。请求由页面后面的代码中的各种事件处理。
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.
Asp.Net Mvc使用模型 - 视图 - 控制器模式,其中请求由Controller处理,该模型与模型交互,然后呈现视图。
Update: More info about Page Controller.
更新:有关页面控制器的更多信息。
#2
1
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 :)
经典ASP.NET使用MVP模式btw :)
It should answer your question!
它应该回答你的问题!
#1
9
Asp.Net is Page-Controller pattern. The request is handled by various events in the code behind of the Page.
Asp.Net是页面控制器模式。请求由页面后面的代码中的各种事件处理。
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.
Asp.Net Mvc使用模型 - 视图 - 控制器模式,其中请求由Controller处理,该模型与模型交互,然后呈现视图。
Update: More info about Page Controller.
更新:有关页面控制器的更多信息。
#2
1
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 :)
经典ASP.NET使用MVP模式btw :)
It should answer your question!
它应该回答你的问题!