|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Webcontrols.menu with multiple root items bound to a sitemapI have a menu on a webform that is bound to a SiteMapDataSource which is
linked to a web.sitemap file. When I have more than one sitemapnode in the sitemap element of the web.sitemap file I get the following error "Exactly one <siteMapNode> element is required directly inside the <siteMap> element.". I want to create a menu based on a sitemap file that has more than one root item, is there any way of achieving this? You can only have one root node within the sitemap file, but you don't have
to display it within the menu. Simply set StartingNodeOffset="1" in the SiteMapDataSource and it will never display the root node in the menu. Show quoteHide quote "abrown" wrote: > I have a menu on a webform that is bound to a SiteMapDataSource which is > linked to a web.sitemap file. When I have more than one sitemapnode in the > sitemap element of the web.sitemap file I get the following error "Exactly > one <siteMapNode> element is required directly inside the <siteMap> > element.". I want to create a menu based on a sitemap file that has more than > one root item, is there any way of achieving this? >
System.Web.HttpException FindContol exception
framed Open htm and asp pagen inside an .NET aspx project Deriving from built-in DataGrid control asp.net 2.0 webparts Custom Server Control Design Best Practices? How to Display an image, from a DB, into the Gridview (ASP.NET 2.0) Welcome to Gridview Hell Webpartzone as DIV Setting control focus on roundtrip |
|||||||||||||||||||||||