ASP.Net VS ASP.Net MVC [英] ASP.Net VS ASP.Net MVC
问题描述
现在这不是一个问题的技术,这是更好,因为他们都有自己相关的用途不同的方案。
Now this isn't a question as to which of the technologies is better, since they both have their relevant uses for different scenarios.
我的问题是关于两个语法。如何它们的语法的有什么不同?
My question is regarding the syntax of the two. How do their syntax's differ?
推荐答案
ASP.NET MVC(顾名思义)仍然是ASP.NET。它只是增加了一个实现模型 - 视图 - 控制器方法的额外的层。视图是只是普通的老ASPX页面,控制器是从控制器类继承的只是普通的老C#/ VB.NET类。唯一的主要区别(除了当然的思维全MVC方式)是code隐藏文件不使用默认。你还可以自己创建它们,虽然。
ASP.NET MVC (as the name suggests) is still ASP.NET. It just adds an extra layer that implements the Model-View-Controller method. Views are just plain old ASPX pages, controllers are just plain old C#/VB.NET classes that inherit from a Controller class. The only major difference (aside from the whole MVC way of thinking, of course) is that code-behind files aren't used by default. You can still create them yourself, though.
这篇关于ASP.Net VS ASP.Net MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!