tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 33

Professional in C# and Visual Basic Part 33. 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 6 Themes and Skins Again other factors besides the order in which the items are defined can alter the appearance of your page. In addition to order other factors such as the target media type importance whether the declaration is specified as important or normal and the origin of the stylesheet also play a factor in interpreting declarations. Having Your Themes Include Images Probably one of the coolest reasons why themes rather than CSS are the better approach for applying a consistent style to your Web page is that themes enable you to incorporate actual images into the style definitions. Many controls use images to create a better visual appearance. The first step in incorporating images into your server controls that consistently use themes is to create an Images folder within the theme folder itself as illustrated in Figure 6-9. Solution Explorer - Solution Th t- 4 X Solution Themes 1 project B C images __J App_Data B App_Th ernes i Fail i j Spring E Summer I I AJ i 15 E A Winter l . jt Figure 6-9 You have a couple of easy ways to use the images that you might place in this folder. The first is to incorporate the images directly from the .skin file itself. You can do this with the TreeView server control. The TreeView control can contain images used to open and close nodes for navigation purposes. You can place images in your theme for each and every TreeView control in your application. If you do so you can then define the TreeView server control in the .skin file as shown in Listing 6-6. 275 Chapter 6 Themes and Skins Listing 6-6 Using images from the theme folder in a TreeView server control asp TreeView runat server BorderColor FFFFFF BackColor FFFFFF ForeColor 585880 Font-Size .9em Font-Names Verdana LeafNodeStyle-ImageUrl images RootNodeStyle-ImageUrl images ParentNodeStyle-ImageUrl images NodeIndent 30 CollapseImageUrl images .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã 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.