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

Professional in C# and Visual Basic Part 72. 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 14 Site Navigation Figure 14-4 With the use of the Pathseparator attribute or the PathSeparatorTemplate element it is quite easy to specify what you want to use to separate the links in the breadcrumb navigation but you might also want to give this pipe some visual style as well. You can add a PathSeparatorStyle node to your SiteMapPath control. An example of this is shown in Listing 14-4. Listing 14-4 Adding style to the PathSeparator property asp SiteMapPath ID Sitemappath1 runat server PathSeparator PathSeparatorStyle Font-Bold true Font-Names Verdana ForeColor 663333 BackColor cccc66 PathSeparatorStyle asp SiteMapPath Okay it may not be pretty but by using the PathSeparatorStyle element with the SiteMapPath control we are able to change the visual appearance of the separator elements. The results are shown in Figure 14-5. Figure 14-5 667 Chapter 14 Site Navigation Using these constructs you can also add an image as the separator as illustrated in Listing 14-5. Listing 14-5 Using an image as the separator @ Page Language VB html xmlns http 1999 xhtml head runat server title Using the SiteMapPath Server Control title head body form id form1 runat server asp SiteMapPath ID SiteMapPath1 runat server PathSeparatorTemplate asp Image ID Image1 runat server ImageUrl PathSeparatorTemplate asp SiteMapPath form body html To utilize an image as the separator between the links you use the PathSeparatorTemplate element and place an Image control within it. In fact you can place any type of control between the navigation links that the SiteMapPath control produces. The PathDirection Property Another interesting property to use with the SiteMapPath control is PathDirection. This property changes the direction of the links generated in the output. Only two settings are possible for this property RootToCurrent and CurrentToRoot. The Root link is the first link in the display. This is usually the Home page. The Current link is the link for the page

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.