TAILIEUCHUNG - ASP.NET AJAX Programmer’s Reference - Chapter 24

Asynchronous Par tial Page Rendering: Client-Side Processing Các chương trước theo các trang thông qua các giai đoạn vòng đời của nó để xử lý yêu cầu trang postback không đồng bộ được thực hiện bởi các ví dụ PageRequestMananger phía khách hàng hiện tại. Chúng tôi theo yêu cầu từ thời điểm đến trong với thời gian các văn bản máy chủ phản ứng cuối cùng đã được gửi lại cho khách hàng. Chương này sẽ di chuyển vào phía khách hàng, văn bản này phản ứng máy chủ đến, và theo các trường hợp PageRequestManager phía khách. | Asynchronous Partial Page Rendering Client-Side Processing The previous chapter followed the Page through its life cycle phases to process the asynchronous page postback request made by the current client-side PageRequestMananger instance. We followed the request from the time it arrived in to the time the server response text was finally sent back to the client. This chapter will move on to the client side where this server response text arrives and follow the client-side PageRequestManager instance through its life cycle phases to process the server response. Arrival of the Server Response Text Recall from Listing 22-22 that the _onFormSubmit method of the current client-side PageRequestManager instance is where the current client-side PageRequestManager instance made its asynchronous page postback to the server. Listing 24-1 presents a portion of the _onFormSubmit method. As the highlighted portion of this code listing shows the current client-side PageRequestManager instance registers its _onFormSubmitCompleted method as an event handler for the completed event of the WebRequest object that represents the current request. this As the name suggests the WebRequest object fires its completed event when the current request is finally completed. Chapter 24 Asynchronous Partial Page Rendering Listing 24-1 The _onFormSubmit Method of the Client-Side PageRequestManager Instance function Sys WebForms PageRequestManager _onFormSubmit evt . var formBody new var count for var i 0 i count i . . var request new X-MicrosoftAjax Delta true Cache-Control no-cache this .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.