attractive menu's using sitemap

M

mocsoft

Does anyone know how to use the sitemap file to generate attractive
menus other than those specified in Visual Web Developer (menu,
treeview). The menu control seems to always group the menu items
together in one top node, theres bound to be a way around this surely??


Any help much appreciated
 
K

Kbalz

I'm using XMLSiteMapProvider, and asp:Menu

In your aspx page where you want the Menu, when you define the
SiteMapDataSource, be sure to have the ShowStartingNode="false" - that
might solve your second problem

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="false" />

<asp:Menu1 DataSourceID="SiteMapDataSource1" runat="server"
......

And the site map should look something like

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="TOPLEVELNODE" description="THIS NODE WILL HIDE">
<siteMapNode title="Home" url="~/default.aspx">
<siteMapNode title="Logon" url="~/logon/default.aspx" />
<siteMapNode title="Sign Up" url="~/logon/signUp.aspx" />
</siteMapNode><!-- End "Home" Node-->
</siteMapNode><!-- End top level Node-->
</siteMap>

Using menu should then look like this:

Home ----
|--- Logon
|--- Sign Up

Hope that helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top