tailieunhanh - ASP.NET AJAX Programmer’s Reference - Chapter 23

Asynchronous Par tial Page Rendering: Ser ver Side Processing Các chương trước sau dụ PageRequestManager phía khách hàng hiện tại khi nó được thực hiện một postback trang không đồng bộ hoặc yêu cầu một phần trang hiển thị ở máy chủ. Chương này sẽ di chuyển vào phía máy chủ để thực hiện theo các yêu cầu trang postback không đồng bộ từ thời điểm đến trong đến thời điểm văn bản phản ứng cuối cùng được gửi lại cho máy chủ. Chương 21 theo đối tượng trang như nó đã đi qua các giai đoạn vòng đời. | Asynchronous Partial Page Rendering Server Side Processing The previous chapter followed the current client-side PageRequestManager instance as it made an asynchronous page postback or partial-page-rendering request to the server. This chapter will move on to the server side to follow the asynchronous page postback request from the time it arrives in to the time the final response text is sent back to the server. Chapter 21 followed the Page object as it went through its life cycle phases to process the first request made to a Web page enabled for partial page rendering. Since the first request wasn t a postback the Page object skipped the postback-related life cycle phases when it was processing the first request. This chapter on the other hand follows the current Page object as it goes through its life cycle phases to process an asynchronous page postback request to the same page that the first request downloaded. Since an asynchronous page postback is a postback request the current Page will go through both postback and non-postback life cycle phases shown in Listing 21-1 and Figure 21-2. Since the non-postback life cycle phases were discussed thoroughly in Chapter 21 I ll discuss only the postback-related life cycle phases in this chapter. RetrievePostData This is the life cycle phase in which the Page object populates an internal collection of type NameValueCollection named _requestValueCollection with the posted data as shown in Listing 23-1. As such this phase makes sense for postback requests whether synchronous or asynchronous. Chapter 23 Asynchronous Partial Page Rendering Listing 23-1 The RetrievePostData Method of the Page Object private void RetrievePostData if else if Depending on the HTTP verb used to make a request the clients of a page will use one of

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.