Basic and pragmatic web development: ASP. NET battle victory commendation party (1)

Source: Internet
Author: User

I. Opening Remarks of the Host:

1. The battle is hard and mysterious, and the soldiers are worthy of admiration.

2. Let's pay tribute to those who have paid for the ASP. NET campaign! At the same time, I would like to pay tribute to the staff and audience of this gala!

2. Invite them to debut with warm applause

First, we have the scheduling command at the forefront: IIS commander

HOST: Hello, IIS Commander. Thank you for taking the time to attend this evening!

Iis commander: Hello, host. The views of the major websites on the weekend are low and relatively idle. The front line shows no pressure. I'm glad to be here. I'm very happy to see the host and the host is very handsome!

HOST: Well, thanks for your compliments. By the way, it is said that you are the Chief Commander of the ASP. NET campaign, which is really amazing.

Iis commander: there is no general command. The key lies in the wisdom and courage of the soldiers. In addition, I am only responsible for the allocation and scheduling of combat tasks. Many key points depend on my big
Isapiappsw3wp.exe, httpruntime, httpcontext, httpsession, httpapplication,
Httpmodule, httphandler, etc. Today, I also brought them to the site. They will be invited to come and meet their audience.

HOST: Great. In addition to a wise commander, there are many brave generals behind each victory. It seems quite reasonable. Well, if you want to share with us what you are
He directs ASP. net battle, I want to sit in ASP. net programmers would like to hear from this experience, especially those who are new and eager to embrace the thigh.
ASP. NET ~~

Iis commander: OK. If you are so sincere, let me talk about it. Based on my responsibilities, I can only talk about the overall planning and operation direction of the entire battle. The specific details will be presented to you by some of my generals. In this process, I try to talk as little nonsense as possible. If you have any questions, you can interrupt me at any time.

HOST: Thank you very much, Commander-in-Chief. Let's listen, hey! The following Dota programmer has a good time!

After a round of applause ............

Iis commander: when it comes to instructions, I have to confirm the type of indication first. because too many malicious commands recently, if I find that it is an empty command, then I will give the other party 404 in courtesy.
Show, then continue to enjoy my tea while visiting the blog garden. If I confirm that the command is normal, I will continue to look at what this command requires our army to do. If I want to report some minor information about the situation, I will directly write a letter
Send an email to the top team. If it is the assigned combat Plan and Policy, I will discuss it with our generals. Of course, I will first contact General ISAPI.

Audience A: Hello, Commander. I don't know if this is correct. When IIS receives an external request, it first determines the requested resource type. If the requested resource does not exist, then 404 is returned.
If the source is a static file such as HTML or images, the file content is directly returned. If it is An ASPX file, find the corresponding mode for processing the aspx extension from the ISAPI ing table.
Block, such as aspnet_isapi.dll. Thank you!

Iis commander: The child is very smart and understands correctly. Next, let's take aspx as an example. At this moment, I found general ISAP and asked him to help me refer to who the task was handed over.
It is better to do it. How can we achieve higher odds. General ISAP immediately took out the information tables (ISAPI extension table in IIS) of all general of the ASP. NET battle military region.
After the General's materials and expertise, he told me to give it to aspnet_isapi.dll. He has combat experience in this field. So I will put aspnet_isapi.dll please
In the account, let him talk about the specific combat solution, and soon there will be results. The overall solution is as follows:

The first step is to publicize the plan to the soldiers and start the war (start w3wp.exe process ).

2. Configure the combat environment to occupy the most favorable terrain (create ASP.. Net execution container appdomain and instantiate the httpruntime object, that is, initialize the runtime environment and load some necessary DLL files into the appdomain ).

3. Assign weapons and equipment to each soldier for better combat, and send troops to the designated location for standby (httpruntime transfers requests to httpapplication, and httpapplication creates an httpcontext object for each request, these objects mainly include httprequest, httpresponse,
Httpsessionstate, etc. These objects can be accessed through the page class or context class in the program .)

4. When the battle starts, the soldiers will handle their respective combat tasks, including handling the temporary instructions from the top. (Httpapplication processes each httpmodule one by one. We can append the required information to the HTTP request information before the request is actually processed by httphandler, or do some additional work for the intercepted HTTP request information .)

5. After the battle ends, process the battle result and report it to the superior. (After all the modules, the HTTP request will be processed by httphandler. In this step, perform some actual operations, usually the business logic completed on the. ASPX page .)

The general solution is as follows ):

HOST: Thank you. Thanks very much to the IIS commander. After his explanation, I finally learned about ASP. how the net campaign won, and made me understand ASP. net Operating Mechanism and principle.

Iis commander: in fact, there are still many details not mentioned in the middle. The host can continue to interview several talented generals in this battle: isapiw.w3wp.exe,
Httpruntime, httpcontext, httpsession, httpapplication, httpmodule,
Httphandler, it will be tomorrow Monday. The access traffic of all major websites should come up. You have to go to the front line to continue scheduling. Please take a step first. Goodbye!

HOST: OK. Thank you again! The advertisement will be back next week. More battle details are to be announced. You are welcome to watch the advertisement later.

This gala was first played by the qingteng house and is also broadcast by the blog garden. Please note the shortcomings of the gala.

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.