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

Event Programming Extensions Một trong những lợi thế lớn của NET Framework. Là cơ sở lập trình sự kiện của nó. Bên khuôn khổ AJAX khách hàng cung cấp cho bạn với dịch vụ tương tự để làm cho phía máy khách JavaScript sự kiện chương trình giống như phía máy chủ. NET lập trình sự kiện càng nhiều càng tốt. Chương này cung cấp cho bạn chuyên sâu trong phạm vi bảo hiểm của AJAX lập trình sự kiện mở rộng và ví dụ sử dụng các phần mở rộng. Sự kiện Lập trình . NET Framework cung cấp. | c Event Programming Extensions One of the great advantages of the .NET Framework is its event-programming facilities. The AJAX client-side framework provides you with similar facilities to make client-side JavaScript event programming more like server-side .NET event programming as much as possible. This chapter provides you with in-depth coverage of the AJAX event-programming extensions and examples that use these extensions. Event Programming The .NET Framework provides you with the following three classes to facilitate event programming in the .NET Framework This is the base class from which all event data classes derive directly or indirectly. This class exposes a single read-only property of type EventArgs named Empty which simply instantiates and returns an instance of the class. This is the base class from which all event data classes associated with cancelable events derive directly or indirectly. This class exposes a single read write Boolean property named Cancel . This class is a linked list where each list entry contains the event handlers for an event type with a specified key. This class exposes the following three important methods AddHandler This method adds a specified event handler to the list entry associated with an event type with a specified key. RemoveHandler This method removes a specified event handler from the list entry associated with an event type with a specified key. AddHandlers This method adds the content of a specified EventHandlerList that is a link list of list entries to the EventHandlerList on which the method is called. Chapter 5 Event Programming Extensions The AJAX client-side framework comes with three classes named Sys. CancelEventArgs and that respectively emulate the .NET System. EventArgs and .EventHandlerList

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.