. NET Framework, ASP. NET basic learning

Source: Internet
Author: User
Tags what is asp

 

The English name of the. NET Framework (. NET Framework) is also a development platform developed by Microsoft. For the definition of. NET, refer to Microsoft's official statement:

"For developers, the. NET Framework provides a comprehensive and consistent programming model for building applications that have always Ally stunning user experiences and seamless and secure communication ."

My simple translation :. the NET Framework provides developers with a comprehensive and stable programming model, which can be used to build an excellent visual user experience, seamless and secure communication application.

 

. The. NET Framework is a programming platform that uses system virtual machines. It is based on the Common Language Runtime Library and supports multiple languages (C #, VB. NET, C ++, Python, etc. (Keyword from Wikipedia '. NET Framework ).

Similar to JAVA's cross-platform development concept, these two platforms seem to be competitors ~

 

As of February 11, the latest. NET 4 version is provided on the. NET official website.

Here is a stack diagram of each version. You can see the version structure. (The image is from the keyword '. NET framework' on the Wikipedia English page)

 

The primary component of. NET isPencil and CLR, Their operation diagram is as follows:

(Picture from Wikipedia)

You can see in the image,CLIIt is actually a hub platform for. NET software development and operation.

 

Its functions include Exception Handling, garbage collection, security assurance, and interoperability.

Through this platform, the. NET Framework supports multiple languages.

CLI implementation depends on running CLR (Common Language Runtime) in a Common Language ).

 

CLRIt is actually the operating engine of the. NET Framework. The running of. NET programs must be under the supervision of CLR to ensure the performance and behavior of programs in memory management, security, and exception handling.
























. NET features:

  • Interoperability, that is, it can run in different systems.
  • The Common Language Runtime Engine (CLR) is described as follows.
  • Language Independence. It supports the exchange of type and object instances between any two languages in. NET.
  • The Base Class Library, part of the framework Class Library, can be used by all languages supporting the. NET Framework. It contains many common functions, such as file read/write and image rendering.
  • Simple Scheduling (Simplified Deployment)
  • Security)
  • Portability)

. NET language:

. NET language developed by Microsoft:

C #/Visual Basic. NET/C ++/CLI/JScript. NET/J # (stopped)/F #/Microsoft Small Basic

 

Third parties use the. NET language:

Ada/APL/Boo/COBOL/Component Pascal/Delphi 8 and Delphi 2005/Eiffel/Forth/FORTRAN/IKVM, java/IronPython/Lexico/Lisp/Mercury/Mondrian/Nemerle/Oberon/Perl/Python/PHP/RPG/Ruby/Smalltalk/Tcl

 

What is ASP. NET?

ASP. NET is a set of class libraries specifically used to develop Web applications embedded in the. NET Framework. It is actually a platform that supports multiple languages in. NET.

ASP. NET was developed by ASP. As its predecessor ASP gradually emerged in use, Microsoft's team migrated ASP to the CLR platform after xxxx's consideration, and its name was changed multiple times, when it was released, it was changed to ASP +.. NET.

 

ASP. NETOperating ArchitectureThere are several stages:

Web server information flow stage,Here, we borrow:

(This section is copied from Wikipedia, because I am too lazy to write it, and it is quite clear to see the picture .)

 

When the Web server receives an HTTP request, the HTTP Listener transfers the request to the website application Process specified by the URL (IIS Worker Process ).

ASP. NET workflow processor (aspnet_isapi.dll, if IIS 5.0 is aspnet_wp.exe) will parse the URL and start. web. the ISAPIRuntime (depending on version) object in the Hosting namespace receives HTTP requests, calls HttpRuntime, and executes HttpRuntime. processRequest ().

Use HttpApplicationFactory in ProcessRequest () to create a new HttpApplication (or the specified IHttpHandler processor), and then assign it to the ProcessRequest () or IHttpHandler's ProcessRequest () method in Page.

After the program is executed, it is passed back to ISAPIRuntime and aspnet_isapi.dll, and finally sent to the HTTP Listener to the user end. Because the execution program is executed as smoothly as a pipeline, it is calledHTTP Pipeline Mode.















ASP. NET status management:Dispatch and process messages on ASP. NET web pages. (Omitted. If you want to see it, go to the Wiki. I personally think it is used for code writing .. This is fine .)

ASP. NET applications are controlled by the web server and accessed through HTTP Status Protocol. ASP. NET provides multiple state management functions.

Client status management isViewStateAndCookiesThe status management on the servo end isSessionAndApplicationObject. Their differences are as follows:

  • ViewState is an encrypted data stream that is output to the user end together with HTML.
  • Cookies are encrypted (or unencrypted) Small Data. Unlike HTML, Cookies can be cached in a browser.
  • Session is a State-saving mechanism on the server. Each client has an independent space (a unique SessionID value is assigned to an individual in a browser ).
  • Application is the server-side status saving mechanism, but all clients of the Application share the same status information.

ASP. NET parts:

ASP. NET is the basic framework for developing Web applications. In addition to its internal operation methods, it also has a lot of development support. This gives engineers more options.

Basic components include:

  • Webpage: the bottom layer of ASP. NET is webpage.System.Web.UI.PageClass.

The ASP. NET webpage is namedWeb FormASP. NET Page requires a Form similar to Windows Forms. Each Web Form must have<form runat="server"></form>All ASP. NET Server controls must be placed in this area so that server controls such as ViewState can operate smoothly.

  • Controls: ASP. NET built-in controls are divided into HTML controls and Web controls. In addition, ASP. NET also provides a customizable control architecture.
  • Script: ASP.. NET Web controls sometimes encapsulate client-side scripting and output it to the user end when the control is drawn. Most of these scripts are packaged in the DLL resource file, and by ScriptResource. axd processing routine to output.
  • Basic objects: Application, Request, Response, Session, Server

Navigation part:(This is a feature that appears only in ASP. NET 2.0)

  • Menu: provides built-in mouse detection methods to implement hierarchical Menu functions.
  • Sitemap: provides a hierarchical view of the current location, supporting data sources in Web. sitemap or from databases or XML files.
  • TreeView: Provides hierarchical data browsing, similar to the Resource Manager interface.

The other two types are application services and extensibility support.

 

Ah, I think .. I can't remember how much I 've said, so I know about it. I just want to write a small code to find out what the Internet is doing .. Second (second) Second

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.