asp.net MVC 2 与 asp.net 的局限性是什么
我正在研究 asp.net MVC 。但我只想知道 asp.enr mvc 2 有什么限制
I am working on asp.net MVC . but I just want to know what are the limitations of the asp.enr mvc 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ASP.NET MVC 完全能够运行企业网站等。没有限制,而且它并不像“只适合小型网站”或类似的东西。
人们说 ASP.NET MVC 通常比普通 ASP.NET Webform 更快,但我没有任何相关数据。 Webforms(可能是您所说的“纯asp.net”),您使用网络上的抽象,这使得制作Windows应用程序的人们更容易为网络构建。如果您以正确的方式使用它们,两者都非常快,所以这并不是一个真正的争论,而是 MVC 适合大型网站的证明。
如果您是该行业的新手,或者有其他 Web 语言的经验,那么我会说 MVC 是您的最佳选择。它看起来很像其他 Web 框架,其中 Webforms 是其中的一种。
在这两种解决方案中,您仍然可以访问整个 .NET 框架。
希望这会有所帮助。 :)
ASP.NET MVC is perfectly capable to run enterprise web sites and so forth. There is no limits, and it's not like it's "only suited for small sites" or anything like that.
People say that ASP.NET MVC is generally faster than normal ASP.NET Webforms, but I don't have any data on that. Webforms (proberbly what you call "pure asp.net"), you use a abstraction over the web, that makes it easier for people that have made windows apps, to build for the web. Both are very fast, if you use them the right way, so this is not really an argument, but a proof that MVC is geared for big sites.
If you are new in the business, or have experience in other web languages, then I will say that MVC is the best bet for you. It looks alot like other web frameworks, where webforms is one of a kind.
In both solutions you still have access to the whole of the .NET framework.
Hope this helps a bit. :)
ASP.NET MVC 构建在 ASP.NET 之上,因此您可以在 ASP.NET 中执行的所有操作都可以使用 ASP.NET MVC 完成。除此之外,它还允许更清晰的关注点分离、更容易进行单元测试的代码、更好地控制生成的 HTML。
ASP.NET MVC is built on top of ASP.NET so everything you could do in ASP.NET could be done with ASP.NET MVC. In addition to this it allows clearer separation of concerns, more easily unit testable code, better control of the generated HTML.