This chapter jumps into the details of Site Maps. First, you learn how to use the SiteMapDataSource control to represent a Site Map on a page. For example, you learn how to use the SiteMapDataSource control to display a list of all the pages contained in a folder. Next, you'll explore the SiteMap and SiteMapNode classes. You learn how to create new Site Map nodes dynamically. You also learn how to programmatically retrieve Site Map nodes and display the properties of a node in a page. This chapter also examines several advanced features of Site Maps. For example, you learn how to show different Site Maps to different users depending on their roles. You also learn how you can extend Site Maps with custom attributes. You also learn how to create custom Site Map providers. The first custom Site Map providerthe AutoSiteMapProviderautomatically builds a Site Map based on the folder and page structure of your website. The second custom Site Map providerthe SqlSiteMapProviderenables you to store a Site Map in a Microsoft SQL Server database table. Finally, you learn how to generate Google SiteMaps from ASP.NET Site Maps automatically. You can use a Google SiteMap to improve the way that your website is indexed by the Google search engine. |