I am trying to use a Sitemap and an asp.net control and share its download.
I did this using ul and li etc., which looks great. But this does not add the flexibility of crackers, roles, etc., Therefore, I would like to use the site map and menu. Anyone got help. I can not get to switch down, etc. Work. I tried to access an element in the code to add css and switch, etc., but it will not work.
<asp:SiteMapDataSource ID="MenuSitemap" SiteMapProvider="MenuSitemap" runat="server" ShowStartingNode="false"></asp:SiteMapDataSource> <asp:Menu ID="menFrontEnd" runat="server" Orientation="Horizontal" DataSourceID="MenuSitemap"></asp:Menu>
sitemap file
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="/" title="Home" description="Home"> <siteMapNode url="/Default" title="Home" description="Home" /> <siteMapNode url="#1" title="Shop" description="Shop"> <siteMapNode url="/Secure/page1" title="page1" description="page1" /> <siteMapNode url="/Secure/page2" title="page2" description="page2" /> </siteMapNode> <siteMapNode url="#2" title="Maintenance" description="Maintenance" > <siteMapNode url="/Secure/Maintenance/page1" title="page1" description="Channels" /> <siteMapNode url="/Secure/Maintenance/page2" title="page2" description="page2" /> </siteMapNode> </siteMapNode> </siteMap>
Thank you all
source share