Request pipeline and 19 standard events, request pipeline 19

Source: Internet
Author: User

Request pipeline and 19 standard events, request pipeline 19
1. BeginRequestASP. NET starts to process the first event of the pair, indicating the start of processing. 2. authenticateRequest is used to AuthenticateRequest the request. postAuthenticateRequest has obtained the user information of the request. 4. authorizeRequest authorization is generally used to check whether a user's request has the permission. postAuthorizeRequest user request has been authorized 7. postResolveRequestCache has completed obtaining the cache 8. postMappRequestHandler has created an object for processing the request processor based on the user's request. 9. The AcquireRequestState gets the request State. Generally, the user Session10.PostAcquireRequestState has obtained Session11.PreRequestHandlerExecute and is ready to execute the processing program. 11. Start to enter the Page lifecycle (Page class) between 12 MPs queue events ① execute the General handler or PR method of the Page ② create the control tree: _ BuilderControlTree is to create the structure of the entire page Control tree. If it is a common C # code, it will be compiled into a method body. ③ Determine whether the IsPostBack is used to determine whether the current request is sent back. It is implemented through ViewState. If ViewState ④ PreInit () initializes an event Init () on duty, it is actually output: it is to create an instance for all controls on the Control tree and assign the default value. The Init method executes a recursive initialization internally. InitComplete ⑤ load the ViewState to load the Page Status, parse and hide the ViewState in the field 6 ProcessPostData to process the returned data 1. compare the data submitted from the form with the original status of the control, and then place the control that needs to be triggered to the set. 2. assign values in the form to the control. 7. Load PreLoad on the page (this is the last place to change the event before the event response) Load (PageLoad) implements ProcessPostData: the second time data is processed. The control that will trigger the change event is placed in the set again. The LoadComplete transform event that triggers the change in the response. The events of the control returned after the PostBack is triggered by the callback PreRend (before rendering) Rendering: the server-side control is converted into html code, this is also the last time that the response content that will be sent to the client can be modified to render the page. 12. postRequestHandler has executed the processing program 13. releaseRequestState: status of the release request 14. postReleaseRequestState has released the Request status 15. updateRequestCache update cache 16. postUpdateRequestCache has updated cache 17. logRequest request log operation 18. postLogRequest has completed the request log operation 19. endRequest processing completed

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.