I am know I have been through this a long time ago, but just cant find it. I have a Menu control on a Site.Master page along with a SiteMapDataSource object. They are all pointing to each other BUT they refuse to display at all.
The Web.SiteMap is as follows...
<div style="color:Black;background-color:White; <pre>
<?xml version=<span style="color:#A31515; "1.0" encoding=<span style="color:#A31515; "utf-8" ?>
<siteMap xmlns=<span style="color:#A31515; "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode >
<siteMapNode url=<span style="color:#A31515; "~/Account/Login.aspx" title=<span style="color:#A31515; "Home" description=<span style="color:#A31515; "Welcome and Login." >
<siteMapNode url=<span style="color:#A31515; "~/Forms/Welcome.aspx" title=<span style="color:#A31515; "Welcome" description=<span style="color:#A31515; "Welcome to Suma Corporation." />
<siteMapNode url=<span style="color:#A31515; "~/Forms/FTP_Test.aspx" title=<span style="color:#A31515; "FTP" description=<span style="color:#A31515; "Connect to FTP server and download file" />
<siteMapNode url=<span style="color:#A31515; "~/ReportForms/ReportSelector.aspx" title=<span style="color:#A31515; "Report Selector" description=<span style="color:#A31515; "Select the reports you wish to review" />
<siteMapNode url=<span style="color:#A31515; "~/Forms/About.aspx" title=<span style="color:#A31515; "About" description=<span style="color:#A31515; "All about the people behind Suma." />
</siteMapNode>
</siteMapNode>
</siteMap>
[/code]
The code for the menu is as follows...
<div style="color:Black;background-color:White; <pre>
<div <span style="color:Blue; class=<span style="color:#A31515; "Clear hideSkiplink" align=<span style="color:#A31515; "center">
<asp:Menu ID=<span style="color:#A31515; "NavigationMenu" runat=<span style="color:#A31515; "server" CssClass=<span style="color:#A31515; "menu"
EnableViewState=<span style="color:#A31515; "False" IncludeStyleBlock=<span style="color:#A31515; "False" Orientation=<span style="color:#A31515; "Horizontal"
DataSourceID=<span style="color:#A31515; "SiteMapDataSource1" StaticDisplayLevels=<span style="color:#A31515; "2"
DynamicHorizontalOffset=<span style="color:#A31515; "3" DynamicVerticalOffset=<span style="color:#A31515; "3" Width=<span style="color:#A31515; "100%">
</asp:Menu>
<asp:SiteMapPath ID=<span style="color:#A31515; "SiteMapPath3" runat=<span style="color:#A31515; "server" CssClass=<span style="color:#A31515; "menu"
ForeColor=<span style="color:#A31515; "#99CCFF" Width=<span style="color:#A31515; "100%">
</asp:SiteMapPath>
<br />
<asp:SiteMapDataSource ID=<span style="color:#A31515; "SiteMapDataSource1" runat=<span style="color:#A31515; "server"
StartingNodeOffset=<span style="color:#A31515; "3" StartingNodeUrl=<span style="color:#A31515; "~/Account/Login.aspx" />
[/code]
What have I missed?
Thanks <hr class="sig SquireDude
View the full article
The Web.SiteMap is as follows...
<div style="color:Black;background-color:White; <pre>
<?xml version=<span style="color:#A31515; "1.0" encoding=<span style="color:#A31515; "utf-8" ?>
<siteMap xmlns=<span style="color:#A31515; "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode >
<siteMapNode url=<span style="color:#A31515; "~/Account/Login.aspx" title=<span style="color:#A31515; "Home" description=<span style="color:#A31515; "Welcome and Login." >
<siteMapNode url=<span style="color:#A31515; "~/Forms/Welcome.aspx" title=<span style="color:#A31515; "Welcome" description=<span style="color:#A31515; "Welcome to Suma Corporation." />
<siteMapNode url=<span style="color:#A31515; "~/Forms/FTP_Test.aspx" title=<span style="color:#A31515; "FTP" description=<span style="color:#A31515; "Connect to FTP server and download file" />
<siteMapNode url=<span style="color:#A31515; "~/ReportForms/ReportSelector.aspx" title=<span style="color:#A31515; "Report Selector" description=<span style="color:#A31515; "Select the reports you wish to review" />
<siteMapNode url=<span style="color:#A31515; "~/Forms/About.aspx" title=<span style="color:#A31515; "About" description=<span style="color:#A31515; "All about the people behind Suma." />
</siteMapNode>
</siteMapNode>
</siteMap>
[/code]
The code for the menu is as follows...
<div style="color:Black;background-color:White; <pre>
<div <span style="color:Blue; class=<span style="color:#A31515; "Clear hideSkiplink" align=<span style="color:#A31515; "center">
<asp:Menu ID=<span style="color:#A31515; "NavigationMenu" runat=<span style="color:#A31515; "server" CssClass=<span style="color:#A31515; "menu"
EnableViewState=<span style="color:#A31515; "False" IncludeStyleBlock=<span style="color:#A31515; "False" Orientation=<span style="color:#A31515; "Horizontal"
DataSourceID=<span style="color:#A31515; "SiteMapDataSource1" StaticDisplayLevels=<span style="color:#A31515; "2"
DynamicHorizontalOffset=<span style="color:#A31515; "3" DynamicVerticalOffset=<span style="color:#A31515; "3" Width=<span style="color:#A31515; "100%">
</asp:Menu>
<asp:SiteMapPath ID=<span style="color:#A31515; "SiteMapPath3" runat=<span style="color:#A31515; "server" CssClass=<span style="color:#A31515; "menu"
ForeColor=<span style="color:#A31515; "#99CCFF" Width=<span style="color:#A31515; "100%">
</asp:SiteMapPath>
<br />
<asp:SiteMapDataSource ID=<span style="color:#A31515; "SiteMapDataSource1" runat=<span style="color:#A31515; "server"
StartingNodeOffset=<span style="color:#A31515; "3" StartingNodeUrl=<span style="color:#A31515; "~/Account/Login.aspx" />
[/code]
What have I missed?
Thanks <hr class="sig SquireDude
View the full article