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

Professional in C# and Visual Basic Part 99. 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 20 AJAX Control Toolkit runat server TargetControlID Panel1 HorizontalOffset 10 HorizontalSide Right VerticalOffset 10 cc1 AlwaysVisibleControlExtender Form Element asp TextBox ID TextBox1 runat server asp TextBox br Form Element asp TextBox ID TextBox2 runat server asp TextBox br -- Excessive code removed for clarity -- Form Element asp TextBox ID TextBox29 runat server asp TextBox br Form Element asp TextBox ID TextBox3 0 runat server asp TextBox br br asp Panel ID Panel1 runat server asp Button ID Button1 runat server Text Submit OnClick Button1_Click asp Button ID Button2 runat server Text Clear asp Panel div form body html C @ Page Language C @ Register Assembly AjaxControlToolkit Namespace AjaxControlToolkit TagPrefix cc1 script runat server protected void Button1_Click object sender EventArgs e The page has been submitted script This code presents a very long form that requires end users to scroll the page in their browser. The AlwaysVisibleControlExtender control is present and its presence requires that you also have a ScriptManager control on the page this is the same requirement for all AJAX controls . The AlwaysVisibleControlExtenderl control extends the Panel1 control through the use of the Target-ControllD attribute. In this case the value of the TargetControlID attribute points to the Panell control. The Panell control contains the form s Submit button. The result of the code from Listing 20-2 is shown in Figure 20-9. The location of the Submit and Clear buttons on the page is controlled via a combination of a several control attributes. First off the location on the page is determined by the Horizontalside possible 938 Chapter 20 AJAX Control Toolkit values include Center Left and Right and VerticalSide properties possible values include Bottom Middle and Top . Then a padding is placed around the control using the HorizontalOffset and VerticalOffset properties both of which are set to 10 pixels in this

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
53    155    2    26-06-2024
Đã 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.