Try our conversational search powered by Generative AI!

Using the .NET 2.0 menu control

Vote:
 
I want to use the .NET 2.0 menu control and feed it with page data from EpiServer. I thought I could use the PageTreeData and loop through all the pages and add them to the menu control. But I couldn't find a way of getting a collection with the pages in the PageTreeData. Another solution could be to generate XML with the PageTree control, loop through the XML and add pages to the menu control. But I rather skip this extra (probably time consuming) step. Has anyone done what I'm trying to do? /Erik
#12698
Jul 04, 2006 10:21
Vote:
 
Hello Erik! Have you tried the 2.0 Site Map Provider code sample? I would guess that this would be useful for you and you can find it here: http://www.episerver.com/en/EPiServer_Knowledge_Center/developerforum/2628/2631/ASPNET_20_Site_Map_Provider_and_TreeView/
#14764
Jul 21, 2006 10:05
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.