Dear All,
I was using a static web .sitemap to populate a menu and a treeview.There are 5 levels, 3 of which are displayed in the menu and rest 2 in the treeview.
Then I decided to have a dynamically generated menu from a dynamically generated web.sitemap file which gets populated from the database.
Therefore I generate a XML file with data from the database and then change the format to that of Web.sitemap and finally save the XML file as Web.sitemap.
Then I call this function( which generates the web.sitemap) in the Load event of my master page so that the menu can populate at the beginning itself.
But the problem is that the menu doesn't populate, and neither does the treeview.
The application is able to find the Web.sitemap(otherwise it would throw error) but not reading its content.
So where is the problem?
I thought may be SiteMapDataSource's which I added by dragging & dropping from toolbox was not able to access the data in Web.sitemap.
Do I need to add them dynamically? IF so how do I attach them to the web.sitemap?
Your help wll be highly appreciated.
Thanks.