Professional ASP.NET 3.5 in C# and Visual Basic Part 50

Professional in C# and Visual Basic Part 50. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 8 Data Managementwith to a specific customer. The GridView control on the bottom shows the results of executing the second query that retrieved a list of all orders submitted by a specific customer. Control - Windows Internet Explorer 1 col a M3 1 http localhost63612 DataManagementVB 1 1 X 1 1 Gooo e p ử f Control 1 E ÍW Page Tools Customer c omp anyN ame ContactName ContactTitle Address City Region PostalCode Country ALFKI Alfreds Futterkiste Maria Anders Sales Representative Obere Str. 57 Berlin 12209 Germany Company Name Contact Name Ol der Date Requited Date Shipped Date Alfreds Futterkiste Maria Anders 8 25 1997 9 22 1997 9 2 1997 Alfreds Futterkiste Mana Anders 10 3 1997 10 31 1997 10 13 1997 Alfreds Futterkiste Maria Anders 10 13 1997 11 24 1997 10 21 1997 Alfreds Futterkiste Mana Anders 1 15 1998 2 12 1998 1 21 1998 Alfreds Futterkiste Mana Anders 3 16 1998 4 27 1998 3 24 1998 Alfreds Futterkiste Mana Anders 4 9 1998 5 7 1998 4 13 1998 Q Internet I Protected Mode Off 100 - Figure 8-25 The code shown in Listing 8-33 reveals some of the elegance of using the wait approach. However it is still not the most efficient code you can write with . The code should allow for a wait until both asynchronous processes finish running before the data binds the result sets to the respective GridView controls. You can change the code shown in Listing 8-33 just a little to gain even more efficiency. Replace the WaitAll method with the WaitAny method. The WaitAny method enables you to handle the results of each of the asynchronous processes as soon as each is completed without waiting for other processing to finish. To use the WaitAny method and still manage the execution of all asynchronous processes you can also add a loop that enables you to make sure that all asynchronous processes are handled after they are completed. The WaitAny method returns an Integer value that indicates an array index of the wait handle that has .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.