加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

ASP.NET MVC注定要取代Webforms吗?

发布时间:2020-05-25 19:16:34 所属栏目:asp.Net 来源:互联网
导读:我发现了这些问题,但其中有几个有点老了: https://stackoverflow.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc Do you think ASP.NET MVC will compete with ASP.NET Webforms? ASP.NET MVC ASP.NET WebFo

我发现了这些问题,但其中有几个有点老了:

https://stackoverflow.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc
Do you think ASP.NET MVC will compete with ASP.NET Webforms?
ASP.NET MVC > ASP.NET WebForms,Why?

我不相信这些是重复的,并且可能已经足够大,以至于可以消除新的光.如果没有,请关闭它.

我知道没有一个框架或语言是每个工作的唯一工具.但是,您是否认为MVC使得网络形式或网络形式在微软的优先级列表中黯然失色?他们将不得不长时间保留webforms,因为有很多人投入了它,但他们不必继续为它添加新的功能.

我不知道这是一个很好的例子,但它让我想起了网页部分.我从未在微软看到太多改进.它起作用,我认为它很棒,直到我开始真正尝试并从中获得很多.然后从我可以看到它只是没有被微软追求那么多,虽然它留在Visual Studio中.也许这是一个坏榜样;就是我记得的.

编辑:此外,如果任何人有任何关于此主题的微软声明,我们表示赞赏.对任何人都没有冒犯.我只是希望有一些正式的东西.

解决方法

这个微软的答案:

ASP.NET MVC provides a framework that
enables you to easily implement the
model-view-controller (MVC) pattern
for Web applications. This pattern
lets you separate applications into
loosely coupled,pluggable components
for application design,processing
logic,and display.

ASP.NET MVC is not a replacement for
Webforms. It provides an alternative
choice when designing a Web
application. Using ASP.NET MVC offers
the following advantages:

It enables you to achieve and
maintain a clear separation of
concerns

It facilitates test driven
development (TDD)

It provides more control over the URLs you publish in the application and over the HTML that is emitted by the application

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读