TAILIEUCHUNG - Calling Web Services with ASP.NET AJAX

Dan Wahlin dịch vụ Web là một phần không thể thiếu của các khuôn khổ NET cung cấp một giải pháp nền tảng cho trao đổi dữ liệu giữa các hệ thống phân phối. Mặc dù các dịch vụ Web thường được sử dụng để cho phép hệ điều hành khác nhau, các mô hình đối tượng và ngôn ngữ lập trình để gửi và nhận dữ liệu, họ cũng có thể được sử dụng để tự động đưa dữ liệu vào một trang AJAX hoặc gửi dữ liệu từ một trang một back-end hệ thống | Calling Web Services with AJAX Dan Wahlin Web Services are an integral part of the .NET framework that provide a cross-platform solution for exchanging data between distributed systems. Although Web Services are normally used to allow different operating systems object models and programming languages to send and receive data they can also be used to dynamically inject data into an AJAX page or send data from a page to a back-end system. All of this can be done without resorting to postback operations. While the AJAX UpdatePanel control provides a simple way to AJAX enable any page there may be times when you need to dynamically access data on the server without using an UpdatePanel. In this article you ll see how to accomplish this by creating and consuming Web Services within AJAX pages. This article will focus on functionality available in the core AJAX Extensions as well as a Web Service enabled control in the AJAX Toolkit called the AutoCompleteExtender. Topics covered include defining AJAX-enabled Web Services creating client proxies and calling Web Services with JavaScript. You ll also see how Web Service calls can be made directly to page methods. Web Services Configuration When a new Web Site project is created with Visual Studio 2008 Beta 2 the file has a number of new additions that may be unfamiliar to users of previous versions of Visual Studio. Some of these modifications map the asp prefix to AJAX controls so they can be used in pages while others define required HttpHandlers and HttpModules. Listing 1 shows modifications made to the httpHandlers element in that affects Web Service calls. The default HttpHandler used to process .asmx calls is removed and replaced with a ScriptHandlerFactory class located in the assembly. contains all of the core functionality used by AJAX. Listing 1. AJAX .

TỪ KHÓA LIÊN QUAN
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.