Hi,
Thanks for your reply. I am using the two methods yo have mentioned. However, I still have to initiate the sitemap from my webconfig file. I dont want to do that. I want to have the flexibility of initiating this sitemap from anywhere I want in the code and not keep the following string in webconfig.
<siteMap defaultProvider="CustomSiteMap" enabled="true">
<providers>
<add name="CustomSiteMap" type="MyNamespace.CustomSiteMap" connectionStringName="ConnectionString"/>
</providers>
I hope I am making some sense.
Cheers,
~S
If my answer has helped you then please mark it as answer. It will help you and me gain some credit and resolve the thread.