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

Event Bubbling and Button Client Control Chương này thảo luận về việc thực hiện các kiểm soát khách hàng nút AJAX và các trang web sử dụng điều khiển. Bạn cũng sẽ tìm hiểu làm thế nào để thực hiện kiểm soát khách hàng tùy biến các sự kiện rằng bong bóng của họ để kiểm soát khách hàng mẹ của họ, và làm thế nào để thực hiện kiểm soát khách hàng tùy chỉnh mà bắt được sự kiện rằng con của họ kiểm soát bong bóng lên. CommandEventArgs Như bạn sẽ thấy sau này trong chương này, các. | Event Bubbling and Button Client Control This chapter discusses the implementation of the AJAX Button client control and Web pages that use this control. You ll also learn how to implement custom client controls that bubble their events up to their parent client controls and how to implement custom client controls that catch the events that their child controls bubble up. CommandEventArgs As you ll see later in this chapter the Button client control raises an event named command when the user clicks the button. The AJAX CommandEventArgs class is the event data class for the command event as defined in Listing 9-1. Listing 9-1 The CommandEventArgs Class function Sys Preview UI CommandEventArgs commandName argument this commandName argument function Sys Preview UI CommandEventArgs get_argument return function Sys Preview UI CommandEventArgs get_commandName return continued Chapter 9 Event Bubbling and Button Client Control Listing 9-1 continued get_argument Sys Preview UI CommandEventArgs get_argument get_commandName Sys Preview UI CommandEventArgs get_commandName properties name argument type String readOnly true name commandName type String readOnly true The CommandEventArgs class exposes two read-only properties of type string named commandName and argument. The constructor of this class takes two string parameters and assigns them to these two properties function Sys Preview UI CommandEventArgs commandName argument this commandName argument The constructor of this class is the only way to set the values of the commandName

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.