Last post Jun 08, 2011 09:38 PM by Decker Dong - MSFT
Jun 07, 2011 08:02 AM|Rajnish Kaur|LINK
I am generating sitemapdatasource at run time to bind with the Menu Control.It is working fine on my local XP machine BUt throws an exception
that "Access denied for Web.sitemap" ..?
Web.sitemap is in the root folder
I have added the asp.net account permissions to the root folder But it is not working..?
Jun 07, 2011 09:14 AM|Lazz. _|LINK
Why do you want to update the web.sitemap from code? I would recommend you to use a SQL Server provider instead if you need a dynamic sitemap alternatively add the dynamic nodes programatically.
Here's a guide for a sql server based sitemap:
And here's for programatically adding sitemap nodes:
Jun 08, 2011 09:38 PM|Decker Dong - MSFT|LINK
Generally speaking, a SiteMap is a very special xml contents that we don't need to change it because it's been defined in advance.
And what's more, if you want to dynamically change the sitemap. I think you can just use a common xml file and bind to XmlDataSource then to your menu. And you can use something like XmlDocument or XDocument or both to change it and bind again.