ASP.NET AJAX Programmer’s Reference with ASP.NET 2.0 or ASP.NET 3.5 phần 7

Tiếp theo, nó gọi một phương pháp khác có tên CollectScripts, đi qua trong bộ sưu tập Danh sách có phương pháp này để cư bộ sưu tập này với danh sách của các đối tượng ScriptReference mà tham khảo file JavaScript: (list1); | Chapter 19 UpdatePanel and ScriptManager This is where the IStateManager interface comes into play. The type of MasterContainerStyle and DetailContainerStyle complex properties that is the TableItemStyle implements this interface. IStateManager exposes one Boolean property IsTrackingViewState and three methods TrackViewState SaveViewState and LoadViewState. When the TrackViewState method of a control is called the method calls the TrackViewState methods of its complex properties. The TrackViewState method of a complex property does exactly what the TrackViewState method of a control does sets an internal Boolean field to true to specify that any state changes will be marked as dirty and saved at the end of the current request. When the SaveViewState method of a control is called the method calls the SaveViewState methods of its complex properties. The SaveViewState method of a complex property does exactly what the SaveViewState method of a control does it saves its state into an appropriate object and returns the object. It then collects the objects returned from the SaveViewState methods of its complex properties and saves them into the same object to which it saves its own state. Finally it returns the object that contains the states of both the control and its complex properties. When the LoadViewState method of a control is called it retrieves the objects that contain the states of its complex properties. It then calls the LoadViewState method of each complex property and passes the object that contains the saved state into it. The LoadViewState method of a complex property does exactly what the LoadViewState of a control does. As you can see from the implementation of the MasterContainerStyle and DetailContainerStyle properties shown in Listing 19-13 when these two style properties are created and BaseMasterDetailControl server control is tracking its view state the control calls the TrackViewState method of these two properties to inform them that they must

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.