TAILIEUCHUNG - Lập trình .net 4.0 và visual studio 2010 part 39

Trong bản phát hành này, tất cả các điều khiển AJAX tiếp xúc như jQuery plug-ins. Vì vậy, bạn có thể nhanh chóng họ bằng cách sử dụng cú pháp jQuery, thậm chí làm việc sử dụng khả năng của jQuery chaining. Các mã sau đây gắn một điều khiển AJAX watermark vào một hộp văn bản và một bảng chọn màu AJAX: | CHAPTER 11 MICROSOFT AJAX LIBRARY Controls Now Exposed as jQuery Plug-ins In this release all the AJAX controls are exposed as jQuery plug-ins. So you can instantiate them using jQuery syntax even making use of jQuery s chaining capabilities. The following code attaches an AJAX watermark control to a text box and an AJAX color picker function txtChooseColor .watermark Choose a color watermarked .colorPicker DataView One of the coolest controls in this release is the new DataView control. DataView allows you to easily define a template that can be bound to various types of data or services. WPF Silverlight developers might notice some similarity with the binding syntax. XHTML-Compliant Microsoft wants you to know that it has made great efforts to ensure that declarative binding is XHTML-compliant. I m not sure this is strictly true but you will see a very clean way of performing it. Sebastian Lambla has a lengthy post on this subject note that Sebastian would have been using a previous version of the AJAX libraries when this post was written http 2009 06 . Hello Microsoft AJAX It s time to look at the new DataView functionality so let s create a new empty web project called . 1. Create a directory called Scripts within your project. 2. Download the latest AJAX libraries from http . 3. Unzip the downloaded file and copy the contents of the Scripts directory to the new project s root directory. 4. You don t want any of the master page stuff so delete the file. 5. To show the libraries are platform-independent add a new HTML file called . 6. Drag to the head HTML section to create the following script reference to the client script loader script src Scripts type text javascript .

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.