SitemapDataSource is used in ASP.NET 2.0 to do page navigation

xiaoxiao2021-03-06  55

In ASP.NET 2.0, there is no special page navigation control, but you can use SiteMapDataSource and DataList to implement. In the SiteMapDataSource control, special build a web.sitemap's XML file is required. The structure of the website is stored, such as

After , in Default.aspx, write code: <% @ page language = "c #"%>