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

Script and Extender Ser ver Controls Trong chương này, tôi sẽ thực hiện các bản sao đầy đủ chức năng của những thành phần của khung phía máy chủ AJAX được tham gia sâu sắc trong các hoạt động nội bộ của hai loại quan trọng của điều khiển máy chủ, được gọi là kiểm soát kịch bản và điều khiển mở rộng, để giúp bạn có được một sự hiểu biết vững chắc của các điều khiển máy chủ, làm thế nào chúng tương tác với các thành phần phía máy khách liên quan của họ, làm thế. | VỊ Script and Extender Server Controls In this chapter I ll implement fully functional replicas of those components of the AJAX server-side Framework that are deeply involved in the internal functioning of two important types of server controls known as script controls and extender controls to help you gain a solid understanding of these server controls how they interact with their associated client-side components how they differ from one another and how to implement your own custom script controls and extender controls. These components of the AJAX server side Framework include IExtenderControl ExtenderControl IScriptControl Scriptcontrol ScriptDescriptor ScriptComponentDescriptor ScriptBehaviorDescriptor ScriptControlDescriptor ScriptReference ScriptReferenceCollection ScriptManager Why You Need Script and Extender Server Controls Let us revisit Listing 16-64. Recall that this code listing contains a page that uses the TextBoxWatermarkBehavior. As this code listing demonstrates page developers must write quite a bit of JavaScript code to use the TextBoxWatermarkBehavior in their applications. Chapter 17 Script and Extender Server Controls If you could encapsulate the TextBoxWatermarkBehavior and the JavaScript code that instantiates and initializes this behavior attaches this behavior to its associated DOM element and adds this behavior to the current AJAX application in a server control you would provide the clients of your server control with the following important benefits This server control could be used declaratively without writing a single line of imperative code such as C or JavaScript. It could be added to the Toolbox of the Visual Studio to allow page developers to drag and drop it on the designer surface. It could be programmed against by means of the Framework. This would allow page developers to take full advantage of the well-known benefits of programming in the .NET environment. The C JavaScript code

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.