"ASP.net 2.0 Secrets" two volumes of books have been beginning a few days, but has been no time to read carefully, only occasionally when the need to look at the reference, recently decided to take time to read through, I think there is a need for the place to make notes, input blog, in preparation for review.
Asp. NET is part of the. NET Framework.
To build asp.net pages, you need to take advantage of the characteristics of the. NET Framework.
The NET framework consists of two parts: the Framework class Library and the common language runtime
Framework class Library
The. NET Framework 2.0 consists of 18 619 types, 12 909 classes, 401 759 public methods, 93 105 public properties, and 30 546 events.
1. Name space
A namespace (namespase) is only a category, for example, all related to manipulating the file system, and the classes are in the System.IO namespace.
2. Assembly (Assembly)
An assembly (assembly) is a. dll file on the hard disk on which the classes in the. NET framework reside. For example, all classes in the ASP.net framework are located in an assembly called System.Web.dll.
The. NET Framework 2.0 contains 51 assemblies.
There are two things you must do to use any class in the. NET framework. First, the application must reference the assembly containing the class, and secondly, the application must import the namespace in which the class resides.
Common Language runtime
The common language runtime (CLR) is used to execute application code.
The C # compiler converts code into a special language for MSIL (Microsoft intermediate language). MSIL is a low-level, platform-independent language.
When the application is formally run, the Jiter (Just-in-time compiler) compiles the MSIL code into machine code in real time. Typically, an application does not compile the entire machine code from MSIL, and only the method that is actually called in the execution of the compilation is compiled into machine code.