Tài liệu về Lập trình C - Chương 1

24 9 0
Tài liệu về Lập trình C - Chương 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tài liệu giảng dạy về ASP.net đã được giảng dạy với mục đích cung cấp cho sinh viên những kiến thức cơ bản nhất, có tính hệ thống liên quan tới lập trình. Thông qua cuốn tài liệu này, chúng tôi muốn giới thiệu với các bạn đọc về kỹ năng lập trình cơ bản.Mời các bạn cùng tham khảo

TRƯỜNG ĐẠI HỌC KHOA HỌC TỰ NHIÊN KHOA CÔNG NGHỆ THÔNG TIN BỘ MÔN CÔNG NGHỆ PHẦN MỀM - - ASP.NET Navigation Mơn học: Lập trình ASP.NET Nội dung       ASP.NET Navigation XML Site map SiteMapPath control Menu control Treeview control Một số mở rộng Sitemap ASP.NET Navigation   Khi xây dựng website, vấn đề quan trọng cần quan tâm việc xây dựng cấu trúc Website (organization structure) Khái niệm organization structure thường gọi sitemap XML Site map Site Navigation  ASP.NET hỗ trợ chế Site Navigation thông qua:  Các Sitemap control dùng để hiển thị site map SitemapPath control  Menu control  Treeview control   Một chế cho phép lưu trữ liên kết tất web page nơi tập trung thể liên kết dựa Sitemap control Site Navigation Schema Controls Menu Menu TreeView TreeView SiteMapSiteMapDataSource DataSource Site Navigation API SiteMap SiteMap SiteMapNode SiteMapNode SiteMapNode SiteMapNode SiteMapNode SiteMapNode Providers XmlSiteMapProvider XmlSiteMapProvider Other OtherSite SiteMap Map Providers Providers Web.sitemap Other Data Stores Site Maps SiteMapPath SiteMapPath XML Site map   Để sử dụng ASP.NET Site map control, cần định nghĩa cấu trúc website thông qua external data source Các external data source dùng cho thao tác mapping XML file, database… XML Site map  Mặc định ASP.NET 2.0 sử dụng XmlSiteMapProvider Sử dụng Web.sitemap (XML file) chứa thông tin cấu trúc website  Các Sitemap control sử dụng file Web.sitemap lấy thông tin cấu trúc Website hiển thị dạng menu, treeview sitemapPath  Web.sitemap Sử dụng XML Site Map 10  Tạo SiteMapDataSource Web.Sitemap Cấu hình SiteMap File 11  Cấu hình thay đổi file sitemap Web.Config ") PathSeparatorStyle Style used to render node separators PathSeparatorTemplate HTML template used to render node separators Menu Control 15  Hiển thị cấu trúc website dạng Menu Orientation=“Vertical" StaticDisplayLevels="2" StaticSubMenuIndent="0px " Orientation="Horizontal" StaticDisplayLevels="2" StaticSubMenuIndent="10p x TreeView Control 16  Hiển thị cấu trúc website dạng TreeView Key TreeView Properties Name ExpandDepth Description Specifies the TreeView's initial expand depth ShowExpandCollapse Specifies whether expand/collapse indicators are shown LevelStyles Specifies appearance of nodes by level NodeStyle Specifies default appearance of nodes RootNodeStyle Specifies appearance of root nodes LeafNodeStyle Specifies appearance of leaf nodes SelectedNodeStyle Specifies appearance of selected nodes HoverNodeStyle Specifies appearance of nodes when cursor hovers overhead TreeViews and Site Maps Web.sitemap Nội dung 20       ASP.NET Navigation XML Site map SiteMapPath control Menu control Treeview control Một số mở rộng Sitemap Thay đổi Default sitemap file Web.config Security Trimming Visible to everyone Visible only to Managers and CEOs Enabling Security Trimming Sử dụng đối tượng Sitemap // Write the title of the current node to a Label control Label1.Text = SiteMap.CurrentNode.Title; // Write the path to the current node to a Label control SiteMapNode node = SiteMap.CurrentNode; StringBuilder builder = new StringBuilder (node.Title); while (node.ParentNode != null) { node = node.ParentNode; builder.Insert (0, " > "); builder.Insert (0, node.Title); } Label1.Text = builder.ToString (); ... ASP.NET Site map control, c? ??n định nghĩa c? ??u tr? ?c website thông qua external data source C? ?c external data source dùng cho thao t? ?c mapping XML file, database… XML Site map  M? ?c định ASP.NET 2.0... file) chứa thông tin c? ??u tr? ?c website  C? ?c Sitemap control sử dụng file Web.sitemap lấy thông tin c? ??u tr? ?c Website hiển thị dạng menu, treeview sitemapPath  Web.sitemap

Ngày đăng: 20/05/2021, 03:44

Tài liệu cùng người dùng

Tài liệu liên quan