PC Review


Reply
Thread Tools Rate Thread

attractive menu's using sitemap

 
 
mocsoft
Guest
Posts: n/a
 
      29th Aug 2006
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

 
Reply With Quote
 
 
 
 
Kbalz
Guest
Posts: n/a
 
      29th Aug 2006
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,


mocsoft wrote:
> 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


 
Reply With Quote
 
mocsoft
Guest
Posts: n/a
 
      30th Aug 2006
Thats exactly what I was wanting, thanks very much for the help!

Kbalz wrote:
> 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,
>
>
> mocsoft wrote:
> > 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use siteMap for two menu? Keven Microsoft ASP .NET 1 22nd Feb 2007 01:22 PM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft VB .NET 1 11th Jan 2007 03:30 AM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft ASP .NET 1 11th Jan 2007 03:30 AM
Menu Control and Sitemap, eliminate the home column on the menu display empire5 Microsoft C# .NET 1 11th Jan 2007 03:30 AM
menu / sitemap JP.Gantlin Microsoft ASP .NET 1 21st Oct 2006 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 PM.