微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

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

原文地址:https://www.jb51.cc/aspnet/248233.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐