我知道有很多设计模式(外观、单例、装饰器等...)但我正在阅读 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 将强制或鼓励模型- View - Controller 模式,但 ASP.NET 是什么模式?
最佳答案
Asp.Net 是 页面 Controller 图案。请求由各种 处理事件 在页面后面的代码中。
Asp.Net Mvc 使用 模型- View - Controller 请求由与模型交互的 Controller 处理然后呈现 View 的模式。
更新:有关页面 Controller 的更多信息。
http://martinfowler.com/eaaCatalog/pageController.html
关于.net - 什么是用于制作 ASP.Net Web Forms 的 'the pattern'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5985328/