告诉我ASP.NET MVC和ASP.NET之间的区别 [英] Tell me that difference between ASP.NET MVC and ASP.NET

查看:59
本文介绍了告诉我ASP.NET MVC和ASP.NET之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们使用asp.net MVC而不是asp.net应用程序。对于我的看法,我很容易使用asp.net web应用程序而不是MVC。



我尝试过的方法:



对于我在MVC中尝试过的所有代码对我来说是非常难的。请告诉我两者的区别。这可能会让我对MVC有所了解。

Why do we use asp.net MVC instead of asp.net application. For my opinion, i was very easy to work with asp.net web Application instead of MVC.

What I have tried:

For all the code what i have tried in MVC is lightly tough for me. please tell me that the difference for both. It may leads me to undertand about MVC.

推荐答案

有很多关于这些主题的文章,您可以自己查找和阅读,以了解MVC添加到基本ASP的内容.NET结构。
There are many articles about these subjects that you can find and read for yourself to understand what MVC adds to the basic ASP.NET structure.


您使用的完全取决于您。



您只需要意识到如果您使用的是旧技术的创新较少,如果人们使用它的话会减少,那么可以帮助你的人就会减少。

我的上一个雇主仍在积极开发经典ASP网站以及MVC版本3& 5.虽然他们在内部主持所有这些;这些网站中的任何一个都可以用于支持Windows的任何商业托管平台。



ASP.NET Web-Forms需要运行MS堆栈。它基于使HTTP和Web作为事件驱动并在无状态平台上具有状态。虽然概念很棒,但可能是未来的潮流;互联网的发展方式不需要国家和事件的驱动方式不需要MS提供的东西。



MVC是一个设计负责人坚定的分离关注点。它是语言和平台无关的;这是一个巨大的,因为为一个平台编写的项目可以移植到另一个平台而无需计算出专有控件。



MS决定加入开放-source社区,以便开发人员可以选择使用。他们创建了一个新的轨道,不需要所有的MS基础设施,可以进行通用部署。



是的,两者都有利弊。如果你想要那些你今天仍然可以阅读的文章: CodeProject:WebForms vs. MVC [ ^ ]
What you use is completely up to you.

You just need to realize that if you use an older technology there is less innovation going on with it and if less people are using it then there are less people that can help you out.
My last employer is still actively developing Classic ASP sites along with MVC versions 3 & 5. While they host all of these internally; any of these sites can go to just about any of the commercial hosting platforms supporting Windows.

ASP.NET Web-Forms require an MS stack to run on. It is based on making HTTP and the web as event-driven and having state on a stateless platform. While it was great in concept and could have been the wave of the future; the internet evolved in a way that didn't require state and events were driven in a way that did not require what MS offered.

MVC is a design principal with a firm Separation of Concerns. It is language and platform agnostic; which is huge as a project written for one platform can be ported to another without needing proprietary controls figured out.

MS decided to jump on the this along with joining the open-source community, so that developers would have options to work with. They have created a new track that doesn't require an all MS infrastructure and can have universal deployment.

Yes, there are pros and cons to both. If you want those you can read through this article which is still relevant today: CodeProject: WebForms vs. MVC[^]


这篇关于告诉我ASP.NET MVC和ASP.NET之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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