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 XML Version = "1.0" Encoding = "UTF-8"?>
Sitemapnode>
After SiteMap>, in Default.aspx, write code: <% @ page language = "c #"%>
Protected void Page_load ()
{
INT index = -1;
INT32.TRYPARSE (Request.QueryString ";" ID "], OUT INDEX);
Tabs.selectedIndex = Index;
}
script>
a
{
Color: # 000000;
Text-decoration: none;
}
.mytab
{
Background: # 6666ff;
Padding: 4px;
}
.mytabselected
{
Background: # ff00ff;
Padding: 4px;
}
style>
hEAD>