This is a migrated thread and some comments may be shown as answers.

[Solved] How can i load sitemap from MemoryStream?

1 Answer 34 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 1
Bill asked on 18 Nov 2011, 08:11 PM
Hi,

Our sitemap are created dynamically into a MemoryStream instead of a phyical sitemap file. Can you please tell me how to I load MemoryStream sitemap with telerik MVC components(for example, SiteMapManager.SiteMaps.Register)?

Thanks,
Bill

1 Answer, 1 is accepted

Sort by
0
ahmet
Top achievements
Rank 1
answered on 03 Feb 2012, 01:07 PM
I had the same problem.

XmlSiteMap xsm = new XmlSiteMap();


                BuildSiteMap(xsm.RootNode, menuList, 0);


                SiteMapManager.SiteMaps.Add(new KeyValuePair<string, SiteMapBase>("MenuSiteMap", xsm));

instead of SiteMapManager.SiteMaps.register
Tags
Menu
Asked by
Bill
Top achievements
Rank 1
Answers by
ahmet
Top achievements
Rank 1
Share this question
or