Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 105

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Bạn có thể nhấp vào liên kết Trang chủ do người điều khiển SiteMapPath để điều hướng đến trang chủ của website. SiteMapPath này sử dụng cả hai tiêu đề và các thuộc tính mô tả từ yếu tố có trong các tập tin Web.sitemap. Các thuộc tính tiêu đề được sử dụng Nghe Đọc ngữ âm | 1014 CHAPTER 22 Using the Navigation Controls FIGURE 22.1 Breadcrumb trail at Yahoo.com. FIGURE 22.2 Displaying the SiteMapPath control. From the Library of Wow eBook Using the SiteMapPath Control 1015 LISTING 22.2 UsingSiteMapPath DisplaySiteMapPath.aspx @ Page Language C DOCTYPE html PUBLIC - W3C DTD XHTML 1.1 EN http www.w3.org TR xhtml11 DTD xhtml11.dtd html xmlns http www.w3.org 1999 xhtml head id Head1 runat server title Display SiteMapPath title head body form id form1 runat server div 22 asp SiteMapPath id SiteMapPath1 Runat server hr h1 Displaying a SiteMapPath Control h1 div form body html You can click the Home link rendered by the SiteMapPath control to navigate to the website s home page. The SiteMapPath uses both the title and description attributes from the siteMapNode elements contained in the Web.sitemap file. The title attribute is used for the node link text and the description attribute is used for the node tool tip. NOTE Typically you do not add a SiteMapPath control to individual pages in your website. If you add a SiteMapPath control to a Master Page you can display the SiteMapPath control automatically on every page. To learn more about Master Pages see Chapter 5 Designing Websites with Master Pages. The SiteMapPath control supports the following properties ParentLevelsDisplay Enables you to limit the number of parent nodes displayed. By default a SiteMapPath control displays all the parent nodes. PathDirection Enables you to reverse the order of the links displayed by the SiteMapPath control. Possible values are RootToCurrent the default or CurrentToRoot. From the Library of Wow eBook 1016 CHAPTER 22 Using the Navigation Controls PathSeparator Enables you to specify the character used to separate the nodes displayed by the SiteMapPath control. The default value is . RenderCurrentNodeAsLink Enables you to render the SiteMapPath node that represents the current page as a link. By default the current node is not rendered as a link. .

TÀI LIỆU LIÊN QUAN
Đã 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.