ASP之间的区别是什么?净和ASP。净MVC吗?

时间:2022-12-30 02:01:58

I'm a complete beginner when it comes to ASP.NET but I want to learn it in order to build a web application that eventually will communicate with a cloud hosted SQL server. However, I cannot find any information that outlines the difference between ASP.NET web application and ASP.NET MVC2 web application (in visual studio 2010) so I'm not sure where to start. Can anyone give me a simple explanation/outline so I can decide on a tutorial to follow?

对于ASP来说,我是一个完全的初学者。但我想学习它,以便构建一个web应用程序,该应用程序最终将与云托管的SQL服务器通信。但是,我找不到任何描述ASP之间区别的信息。NET web应用程序和ASP。NET MVC2 web应用程序(在visual studio 2010中),所以我不确定从哪里开始。有人能给我一个简单的解释/提纲吗?这样我就可以决定接下来的教程了。

Thanks

谢谢

5 个解决方案

#1


7  

ASP.NET MVC2 web application is based on MVC pattern in order to facilitate unit test, without mocking pipeline asp.net, because it's very difficult. you don't have code on Code Behind in order to separate your code graphic and your code functional.

ASP。NET MVC2 web应用程序基于MVC模式,以方便单元测试,不模拟管道asp.net,因为这非常困难。为了将代码图形和代码功能分开,您后面没有代码。

With MVC your application become independent from view. you can replace easily technology of creating view.

使用MVC,您的应用程序将独立于视图。您可以轻松地替换创建视图的技术。

Read this article it's very interesting : http://msdn.microsoft.com/en-us/magazine/dd942833.aspx

读这篇文章很有趣:http://msdn.microsoft.com/en-us/magazine/dd942833.aspx

#2


16  

ASP.NET is a web platform. It provides a layer that sits on top of IIS (the web server) which facilitates the creation of web applications and web services. ASP.NET MVC is a framework specifically for building web applications. It sits ontop of ASP.NET and uses APIs provided by ASP.NET. ASP.NET Web Forms is another framework specifically for building web applications, and the new ASP.NET Web API is a platform for building web services.

ASP。NET是一个web平台。它提供一个位于IIS (web服务器)之上的层,以便于创建web应用程序和web服务。ASP。NET MVC是一个专门用于构建web应用程序的框架。它位于ASP的顶端。NET和使用ASP.NET提供的api。ASP。NET Web Forms是另一个专门用于构建Web应用程序和新的ASP的框架。NET Web API是一个构建Web服务的平台。

#3


5  

ASP.NET, at its most basic level, provides a means for you to provide general HTML markup combined with server side "controls" within the event-driven programming model that can be leveraged with VB, C#, and so on. You define the page(s) of a site, drop in the controls, and provide the programmatic plumbing to make it all work.

ASP。NET在最基本的层次上为您提供了一种方法,可以在事件驱动的编程模型中提供与服务器端“控件”结合的一般HTML标记,这些编程模型可以与VB、c#等一起使用。您可以定义站点的页面,删除控件,并提供编程管道使其正常工作。

ASP.NET MVC is an application framework based on the Model-Value-Controller design pattern. This is what might be considered a "canned" framework for a specific way of implementing a web site, with a page acting as the "controller" and dispatching requests to the appropriate pages in the application. The idea is to "partition" the various elements of the application, eg business rules, presentation rules, and so on.

ASP。NET MVC是基于模型-值-控制器设计模式的应用程序框架。这可能被认为是实现web站点的特定方式的“封闭”框架,页面充当“控制器”,并将请求发送到应用程序中的适当页面。其思想是“划分”应用程序的各个元素,如业务规则、表示规则等。

Think of the former as the "blank slate" for implementing a site architecture you've designed more or less from the ground up. MVC provides a mechanism for designing a site around a pre-determined "pattern" of application access, if that makes sense. There's more technical detail to it than that, to be sure, but that's the nickel tour for the purposes of the question.

将前者视为实现您从头开始设计的站点架构的“白板”。MVC提供了一种机制,可以在应用程序访问的预先确定的“模式”周围设计一个站点,如果这有意义的话。可以肯定的是,它有更多的技术细节,但这就是这个问题的镍之旅。

Good luck!

好运!

#4


2  

A very good material is available here http://www.webdevelopmenthelp.net/2013/10/Difference-between-ASP.NET-WebForm-And-ASP.NET-MVC.html

这里有一个非常好的材料:http://www.webdevelopmenthelp.net/2013/10/差分- asp .net - webformand - asp.net - mvc.html。

#5


1  

If you have VS10 make a small ASP.NET (webforms) application and a small ASP.NET MVC 2 application, and examine the differences between them. It's a great way to learn.

如果你有VS10,做一个小的ASP。NET (webforms)应用程序和一个小型ASP。NET MVC 2应用程序,并检查它们之间的区别。这是一个很好的学习方式。

#1


7  

ASP.NET MVC2 web application is based on MVC pattern in order to facilitate unit test, without mocking pipeline asp.net, because it's very difficult. you don't have code on Code Behind in order to separate your code graphic and your code functional.

ASP。NET MVC2 web应用程序基于MVC模式,以方便单元测试,不模拟管道asp.net,因为这非常困难。为了将代码图形和代码功能分开,您后面没有代码。

With MVC your application become independent from view. you can replace easily technology of creating view.

使用MVC,您的应用程序将独立于视图。您可以轻松地替换创建视图的技术。

Read this article it's very interesting : http://msdn.microsoft.com/en-us/magazine/dd942833.aspx

读这篇文章很有趣:http://msdn.microsoft.com/en-us/magazine/dd942833.aspx

#2


16  

ASP.NET is a web platform. It provides a layer that sits on top of IIS (the web server) which facilitates the creation of web applications and web services. ASP.NET MVC is a framework specifically for building web applications. It sits ontop of ASP.NET and uses APIs provided by ASP.NET. ASP.NET Web Forms is another framework specifically for building web applications, and the new ASP.NET Web API is a platform for building web services.

ASP。NET是一个web平台。它提供一个位于IIS (web服务器)之上的层,以便于创建web应用程序和web服务。ASP。NET MVC是一个专门用于构建web应用程序的框架。它位于ASP的顶端。NET和使用ASP.NET提供的api。ASP。NET Web Forms是另一个专门用于构建Web应用程序和新的ASP的框架。NET Web API是一个构建Web服务的平台。

#3


5  

ASP.NET, at its most basic level, provides a means for you to provide general HTML markup combined with server side "controls" within the event-driven programming model that can be leveraged with VB, C#, and so on. You define the page(s) of a site, drop in the controls, and provide the programmatic plumbing to make it all work.

ASP。NET在最基本的层次上为您提供了一种方法,可以在事件驱动的编程模型中提供与服务器端“控件”结合的一般HTML标记,这些编程模型可以与VB、c#等一起使用。您可以定义站点的页面,删除控件,并提供编程管道使其正常工作。

ASP.NET MVC is an application framework based on the Model-Value-Controller design pattern. This is what might be considered a "canned" framework for a specific way of implementing a web site, with a page acting as the "controller" and dispatching requests to the appropriate pages in the application. The idea is to "partition" the various elements of the application, eg business rules, presentation rules, and so on.

ASP。NET MVC是基于模型-值-控制器设计模式的应用程序框架。这可能被认为是实现web站点的特定方式的“封闭”框架,页面充当“控制器”,并将请求发送到应用程序中的适当页面。其思想是“划分”应用程序的各个元素,如业务规则、表示规则等。

Think of the former as the "blank slate" for implementing a site architecture you've designed more or less from the ground up. MVC provides a mechanism for designing a site around a pre-determined "pattern" of application access, if that makes sense. There's more technical detail to it than that, to be sure, but that's the nickel tour for the purposes of the question.

将前者视为实现您从头开始设计的站点架构的“白板”。MVC提供了一种机制,可以在应用程序访问的预先确定的“模式”周围设计一个站点,如果这有意义的话。可以肯定的是,它有更多的技术细节,但这就是这个问题的镍之旅。

Good luck!

好运!

#4


2  

A very good material is available here http://www.webdevelopmenthelp.net/2013/10/Difference-between-ASP.NET-WebForm-And-ASP.NET-MVC.html

这里有一个非常好的材料:http://www.webdevelopmenthelp.net/2013/10/差分- asp .net - webformand - asp.net - mvc.html。

#5


1  

If you have VS10 make a small ASP.NET (webforms) application and a small ASP.NET MVC 2 application, and examine the differences between them. It's a great way to learn.

如果你有VS10,做一个小的ASP。NET (webforms)应用程序和一个小型ASP。NET MVC 2应用程序,并检查它们之间的区别。这是一个很好的学习方式。