ASP.NET MVC 注定要取代 Webforms 吗? [英] Is ASP.NET MVC destined to replace Webforms?

查看:25
本文介绍了ASP.NET MVC 注定要取代 Webforms 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I found these questions, but a couple of them were a little old:

https://stackoverflow.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc你认为 ASP.NET MVC 会与 ASP.NET Webforms 竞争?ASP.NET MVC >ASP.NET WebForms,为什么?

我不相信这些是重复的,并且可能已经足够老,可以散发出新的光芒.如果没有,请关闭它.

I do not believe these are duplicates and might be old enough that new light can be shed. If not please close this.

我知道没有一种框架或语言一定是每项工作的唯一工具.但是,您是否看到 MVC 超过了 webforms 或 webforms 在 Microsoft 的优先级列表中降低了?他们将不得不长期保留网络表单,因为很多人已经对其进行了投资,但他们不必继续为其添加新功能.

I know that no one framework or language is necessarily the only tool for every job. But, do you see MVC eclipsing webforms or webforms going lower on the priority list for Microsoft? They will have to keep webforms for a long time because so many have invested in it, but they don't have to keep adding new functionality for it.

我不知道这是否是一个很好的例子,但它让我想起了 Web 部件.我从来没有看到微软在这方面有太大的改进.它有效,我认为它很棒,直到我开始真正尝试并从中获得很多.然后从我所看到的,微软并没有那么追求它,尽管它留在了 Visual Studio 中.也许这是一个不好的例子;就是我记得的.

I don't know if this is a good example, but it reminds me of web parts. I never saw much improvement in it from Microsoft. It works and I thought it was great until I started to really try and get a lot out of it. Then from what I could see it just wasn't being pursued by Microsoft that much, though it stayed in Visual Studio. Maybe that's a bad example; just what I remembered.

另外,如果有人在这个主题上有任何来自微软的声明,我们将不胜感激.没有冒犯任何人.我只希望有正式的东西.

Also, if anyone has any statements from Microsoft on this subject it is appreciated. No offense to anyone. I was only hoping for something official.

推荐答案

这个微软的回答:

ASP.NET MVC 提供了一个框架使您能够轻松实施模型-视图-控制器 (MVC) 模式用于 Web 应用程序.这个图案让您将应用程序分成松散耦合、可插拔组件用于应用程序设计、处理逻辑和显示.

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 不能替代网络表格.它提供了另一种选择设计网页时的选择应用.使用 ASP.NET MVC 提供以下优点:

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

• 它有助于测试驱动开发(TDD)

• It facilitates test driven development (TDD)

• 它提供了对您在应用程序中发布的 URL并通过由发出的 HTML应用程序

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

这篇关于ASP.NET MVC 注定要取代 Webforms 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆