When we do website backend management, we often need to use Tab-style navigation menus. This is true for Blog Park, and it is also true for BlogEngine. When I was studying and modifying BlogEngine some time ago, I saw that its Tab implementation is so easy. The idea is good, but there is one thing that makes me Depressed, his Tab title is based on the file name, and using Chinese file names is a taboo when writing programs. Naturally, I thought of the feature Web.sitemap of Asp.Net2.0. How could our data source not come from it, so I wrote it down briefly. It's actually very simple. It only requires a style file, a SiteMap, a general UserControl, and a master page.
Module/CpMenu.ascx is the navigation user control
App_Themes is the skin folder, and there are many ways to implement Tab. For example, it can also be implemented using css+div+js. Users can choose according to their own needs.
Expand