Đang chuẩn bị liên kết để tải về tài liệu:
Lập trình .net 4.0 và visual studio 2010 part 39

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Trong bản phát hành này, tất cả các điều khiển ASP.NET 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 ASP.NET AJAX watermark vào một hộp văn bản và một bảng chọn màu ASP.NET AJAX: | CHAPTER 11 MICROSOFT AJAX LIBRARY Controls Now Exposed as jQuery Plug-ins In this release all the ASP.NET 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 ASP.NeT AJAX watermark control to a text box and an AsP.NET AJAX color picker Sys.require Sys.scripts.jQuery Sys.components.watermark Sys.components.colorPicker Sys.onReady 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 serialseb.blogspot.com 2009 06 in-how-many-ways-can-microsoft-ajax-4.html. Hello Microsoft AJAX It s time to look at the new DataView functionality so let s create a new empty ASP.NET web project called Chapterll.HelloAjax. 1. Create a directory called Scripts within your project. 2. Download the latest AJAX libraries from http ajax.codeplex.com . 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 Default.aspx file. 5. To show the libraries are platform-independent add a new HTML file called dataviewDeclarative.htm. 6. Drag Start.js to the default.htm head HTML section to create the following script reference to the client script loader script src Scripts start.js type text javascript .

crossorigin="anonymous">
Đã 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.