Differences between. NET, C #, ASP. NET, and ASP. net mvc,

Source: Internet
Author: User

Differences between. NET, C #, ASP. NET, and ASP. net mvc,

Often, some people cannot figure out the relationship between. NET and c # and ASP. NET. What are they? What is the relationship between them? Let me summarize it for you today.

 

First, what is. NET?

. NET is a development platform under Microsoft ,. NET core is. NET Framwork (.. NET Framework) is.. NET Program Development and running environment, which can be developed in different languages. NET is a cross-language platform. The language can be C #, f #, j #, vb.net, etc. By the way, the difference between JAVA and. NET in sum is that java is cross-platform rather than cross-language .. NET cross-platform is limited to Android and IOS.

1..net framework consists of two parts: CLR: runtime in the public language-provides internal management, code security detection, and other functions

FLC:. NET Framework class library. The class library can be used by resources with many threads (such as classes, methods, and attributes). It provides a large number of application class libraries to improve development efficiency.

2. CLR structure: CLS: common language specification, which is used to convert various languages into a unified syntax specification.

CTS: a common type system that converts data types in various languages to a uniform type.

JIT: A Real-Time compiler is used to compile the converted language into a binary language and deliver it to the CPU for execution.

3. NET Running Mechanism process

Various Languages (c #, F #, j # and other corresponding source programs) ---- after CLS, CTS compiled for the first time -------> Unified Standard Language (intermediate language) MSIL (. EXE ,. DLL) ---- JIT Second compilation ----> binary language ------> run in CPU

By the way, you can understand the. net operating mechanism and the java operating mechanism. The principle is almost the same.

. Java ---- compile ---> bytecode file (. CLASS) --- jvm interpretation (jvm Virtual Machine) ---> binary language ------> run in CPU

Some people say: learning. NET Framework is all. NET developers are required, otherwise development. NET programs will always stay in the 'output' tactics ,. NET Framework is. one of the internal practices of NET developers.

 

4. C # is a programming language on the. NET platform. It is just a language. The programming language is used to facilitate communication between developers and computers. From the above. net Operating Mechanism process, we can see the relationship between C # And. NET. The screen reader can make up his mind!

5. ASP. NET is a website development technology and an application model in the. NET Framework. (My personal understanding is that my mom is ASP and I don't know how to use ASP.. NET, which is easier than other development languages to develop and maintain Web applications. Compared with advanced technologies such as Java, PHP, and Perl, ASP. NET has the advantages of convenience, flexibility, high production efficiency, high security, and object-oriented. It is one of the mainstream network programming technologies.

 

6. about ASP. net mvc, I often don't understand their names when I first came into contact with this technology. I believe many of them learn ASP. NET developers began to contact MVC, which should also produce a lot of reasons like me, and mistakenly think that MVC and ASP. NET is completely irrelevant. It is A brand new Web development. After deep learning, I realized that A SP. NET is the framework for creating WEB applications, while MVC is a more advanced architecture system that can better organize and manage code, so it can be called ASP. net mvc. The original ASP. NET is called ASP. NET Webforms, and the new MVC is called ASP. net mvc.

MVC is a pattern of software architecture. It can be said that it is equivalent to the design pattern we often call. It mainly includes three modules, as the name suggests. As shown in the MVC name: Model, View, and Controller ). The models and views in mvc are completely different from those in the three-tier architecture.

Features of the Model in MVC:

① You have the right to access data directly, for example, accessing a database;

② The Model is not dependent on the View and Controller, that is, the Model does not care about how it is displayed or operated;

③ Data changes in a Model are generally "published" through a refresh mechanism ";

④ To implement the "mechanism" in ③, the view used to monitor this model must be registered on this model in advance. As a result, the view can understand the changes in the data model.

View ),The view here is basically the same as the view on the third layer. It is used to display data without program logic. To refresh data in a View, the View needs to access the Model it monitors. Therefore, you should register the data it monitors in advance.

Controller ),This concept does not exist in Layer 3. It mainly serves as an organizational unit at different levels and is used to control application processes. Mainly deal with events and make appropriate responses. "Events" mainly include user behavior and data changes.

The above is the conceptual difference between the three-layer structure and mvc. (What is a layer-3 structure? Baidu, you will know .)

 

There is a saying that it is good to learn, not to think, but to think, not to learn, to learn programming, not only to know its own, but also to know its own, in order to better understand and understand the magic and beauty of programming.

 

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.