TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 89

Professional in C# and Visual Basic Part 89. 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 17 Portal Frameworks and Web Parts ExportVerb HelpVerb MinimizeVerb RestoreVerb Figure 17-18 The asp WebPartZone control allows you to control these verbs by nesting the appropriate verb elements within the asp WebPartZone element itself. After these are in place you can manipulate how these items appear in all the Web Parts that appear in the chosen Web Part Zone. For example look at graying out the default Close link included with a Web Part. This is illustrated in Listing 17-11. Listing 17-11 Graying out the Close link in a Web Part asp WebPartZone ID WebPartZone3 Runat server CloseVerb Enabled False ZoneTemplate asp Calendar ID Calendar1 Runat server Continued 837 Chapter 17 Portal Frameworks and Web Parts asp Calendar ZoneTemplate asp WebPartZone In this example you can see that you simply need to set the Enabled attribute of the CloseVerb element to False in order to gray out the Close link in any of the generated Web Parts included in this Web Part Zone. If you construct the Web Part Zone in this manner you achieve the results shown in Figure 17-19. Figure 17-19 If you do not want to gray out the Close link or any other verb link contained within the Web Part you must instead use the Visible attribute of the appropriate verb see Listing 17-12 . Listing 17-12 Removing the Close link in a Web Part asp WebPartZone ID WebPartZone3 Runat server CloseVerb Visible False Continued 838 Chapter 17 Portal Frameworks and Web Parts ZoneTemplate asp Calendar ID Calendar1 Runat server asp Calendar ZoneTemplate asp WebPartZone Using the Visible attribute produces the screen shown in Figure 17-20. Figure 17-20 Verb elements provide another exciting feature They give you the capability to use images that would appear next to the text of an item. Using images with the text makes the Web Parts appear more like the overall Windows environment. For instance you can change the contents of WebPartZone3 again so that it now uses images with the text for the Close and .

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.