.net - 什么是用于制作 ASP.Net Web Forms 的 'the pattern'?

标签 .net asp.net asp.net-mvc

我知道有很多设计模式(外观、单例、装饰器等...)但我正在阅读 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/

相关文章:

c# - Sitecore 发布 :end event interaction with user

asp.net-mvc - 如何将 IoC 成员资格提供程序与 ASP.NET MVC 集成

c# - 在 C# 中,我应该使用 struct 来包装一个对象以实现额外的接口(interface)吗?

c# - 在我的代码中找不到错误它是一个使用列表存储操作和数字的计算器?

c# - 向 DataGridView 行标题添加文本

jquery - 使用 jQuery 动态改变进度条的颜色

javascript - 关于验证数字的 JavaScript 函数的说明

c# - 文件夹内的 MVC 路由

asp.net - IIdentity、IPrincipal、OWIN、IdentityUser 和 IUser<string> 如何组合在一起?

.net - 如何更改 TabControl 的边框颜色和大小?