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

Professional in C# and Visual Basic Part 34. 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 Next create a standard .aspx page that uses your custom server control. Before running the page be sure to apply the defined theme on the page using the Theme attribute in the @Page directive. With everything in place running the page produces the following results in the browser FROM THE SKIN FILE This value which was specified in the skin file is displayed no matter what you apply as the HeaderText value in the server control. In addition to changing values of custom properties that are contained in server control you can also change the inherited properties that come from WebControl. For instance you can change settings in your skin file as shown in Listing 6-17. Listing 6-17 Changing inherited properties in the custom control @ Register Assembly ControlForThemes Namespace ControlForThemes TagPrefix cc1 cc1 webcustomcontrol1 runat server BackColor Gray With this in place you have changed one of the inherited properties from the skin file. This setting changes the background color of the server control to gray even if it is set to something else in the control itself . The result is presented in Figure 6-13. You can find more information on building your own custom server controls in Chapter 26. Figure 6-13 285 Chapter 6 Themes and Skins Summary With the availability of themes and skins in it is quite easy to apply a consistent look and feel across your entire application. Remember that themes can contain only simple server control definitions in a .skin file or elaborate style definitions which include not only .skin files but also CSS style definitions and even images As you will see later in the book you can use themes in conjunction with the personalization features that provides. This enables your end users to customize their experiences by selecting their own themes. Your application can present a theme just for them and it can remember their choices through the APIs that are offered in . 286 7 Data

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.