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

Professional in C# and Visual Basic Part 41. 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 7 Data Binding in Template Name Description ItemTemplate AlternatingItemTemplate Provides a User Interface for each data item in the control Provides a unique UI for alternating data items in the control SelectedItemTemplate Provides a unique UI for the currently selected data item InsertItemTemplate Provides a UI for inserting a new data item into the control EditItemTemplate EmptyItemTemplate Provides a UI for editing an existing data item in the control Provides a unique UI for rows created when there is no more data to display in the last group of the current page EmptyDataTemplate The template shown when the bound data object contains no data items LayoutTemplate The template that serves as the root container for the ListView control and is used to control the overall layout of the data items GroupSeparatorTemplate Used to provide a separator UI between groups GroupTemplate ItemSeperatorTemplate Used to provide a unique UI for grouped content Used to provide a separator UI between each data item The use of templates allows the ListView control to retain a very basic level of information about the markup sections and states which can comprise the ListView while still being able to give you almost total control over the UI of the ListView. ListView Data Item Rendering While the ListView is generally very flexible allowing you almost complete control over the way it displays its bound data it does have some basic structure which defines how the templates described in the previous section are related to one another. As described previously at a minimum the control requires you to define two templates the LayoutTemplate and ItemTemplate. The LayoutTemplate is the root control template and therefore where you should define the overall layout for the collection of data items in the ListView. For example if you examine the template markup generated by the Grid layout you can see the LayoutTemplate includes a table element definition a single table

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.