1 / 8

Bài 9. SITE NAVIGATION

Bài 9. SITE NAVIGATION. Giới thiệu Site Navigation. Giới thiệu. Site Navigation được dùng để: Di chuyển giữa các trang trong website Quản lý tất cả các link Hiển thị các Link trong danh sách hoặc menu trên mỗi trang Mô tả bố cục của WebSite như một hệ thống thứ bậc.

duff
Download Presentation

Bài 9. SITE NAVIGATION

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bài 9. SITE NAVIGATION Giới thiệu Site Navigation

  2. Giới thiệu Site Navigation được dùng để: • Di chuyển giữa các trang trong website • Quản lý tất cả các link • Hiển thị các Link trong danh sách hoặc menu trên mỗi trang • Mô tả bố cục của WebSite như một hệ thống thứ bậc

  3. Sử dụng Site Navigation • Site Map • Site Navigation: • Menu • SiteMapPath • TreeView • Site Map với Master pages

  4. Site Map • Site Map là một mô tả XML của cấu trúc website • Tạo Site Map như tạo các file khác trong VS • Cấu trúc file .sitemap

  5. Site Map - Menu • Kéo thả Menu Control vào vị trí cần đặt • Thiết lập các thuộc tính

  6. SiteMapPath • Ý nghĩa: Hiển thị vị trí của trang trong cây thứ bậc hiện hành • Lưu ý: Mặc định SiteMapPath hiển thị cấu trúc thứ bậc theo tập tin Web.sitemap • Cách tạo: • Đưa Control SiteMapPath vào trang cần có <asp:SiteMapPath ID="SiteMapPath1" runat="server"> <PathSeparatorTemplate>|</PathSeparatorTemplate> </asp:SiteMapPath>

  7. Site Map - TreeView • Tạo TreeView trong trang chính • Liên kết đến nguồn dữ liệu là Web.sitemap

  8. Site Map với Master Pages • Tạo MasterPage • Trong MasterPage tạo: • TreeView hoặc Menu • SiteMapPath .sitemap

More Related