I'm currently working on a small subdirectory site for my company on a larger website site.
I have a subdirectory /mycompany/ on a main site ie where site is the main site and mycompany is my subfolder. where my pages will be based and these use the masterpages of the main site (which I cannot alter), however I want to add a navigation menu panel on the left on my pages in one of the content fields which only refers to my area
ie /company/About Us
/Company/Calender
etc
just those pages in my subdirectory
I wanted to use the new navigation menu of asp.net2 using the code
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"></asp:SiteMapDataSource>
<asp:Menu runat="server" DataSourceID="SiteMapDataSource1"></asp:Menu>
This seems to work fine if I put the web.sitemap in the top of the main site, but I really need it to use a sitemap file in my subfolder. Is there anyway I can tell the SiteMapDataSource to get the sitemap file from within my subfolder 'mycompany' (possibly with a different name ie company.sitemap) rather than the default location and name (~/web.sitemap)?
Thanks
Andy
I have a subdirectory /mycompany/ on a main site ie where site is the main site and mycompany is my subfolder. where my pages will be based and these use the masterpages of the main site (which I cannot alter), however I want to add a navigation menu panel on the left on my pages in one of the content fields which only refers to my area
ie /company/About Us
/Company/Calender
etc
just those pages in my subdirectory
I wanted to use the new navigation menu of asp.net2 using the code
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"></asp:SiteMapDataSource>
<asp:Menu runat="server" DataSourceID="SiteMapDataSource1"></asp:Menu>
This seems to work fine if I put the web.sitemap in the top of the main site, but I really need it to use a sitemap file in my subfolder. Is there anyway I can tell the SiteMapDataSource to get the sitemap file from within my subfolder 'mycompany' (possibly with a different name ie company.sitemap) rather than the default location and name (~/web.sitemap)?
Thanks
Andy