473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

attractive menu's using sitemap

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

Aug 29 '06 #1
2 1946
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
Aug 29 '06 #2
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
Aug 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Parter | last post by:
I have a master page which contains a Menu control and a SiteMapPath control, both are bound to the same web.sitemap XML file. Say I have 2 pages, Page 1 and Page 2. Now Page 2 can only be accessed...
4
by: fredd00 | last post by:
Hi I'm trying to use the menu control but o would like ot use images instead of text. I can't get it to work. I can't find much info on the Menu databindings editor , wich i think that's the...
0
by: monahan7_7 | last post by:
Saw a posting on this from January - wanting to know if anyone has a resolution. Navigation Menu in asp.net 2.0. Using web.sitemap file 64K in size. onMouseOver for menu items, takes up to 4...
1
by: m_hansford | last post by:
I have a Menu control that populates from a SiteMap file. It's on my Master Page and usually loads content pages. I've got 2 problems at the moment: - Some of my menu items point to an...
0
by: mike | last post by:
I'm having two problems with my Menu control that I'm yet to find answers to. I am configuring my Menu control from a SiteMap data source. 1. Those menus which are pull-downs are still...
1
by: R.A.M. | last post by:
Hello, I need your help with a problem of menu definition. Plase help, I have little experience. I have created custom Menu, which I want to put on a few .aspx pages: public class DemoMenu :...
3
by: John Dann | last post by:
Newbie question: I'm guessing that using asp:menu in an aspx 2.0 web form doesn't allow search engines to index pages via the menu tree. Please can anyone confirm this? Assuming this is correct...
1
by: Kbalz | last post by:
I'm using xml site map to trim my security on my menus.. Its working rather well, but I'm having this gripe about it.. Here's my psuedo problem.. <?xml version="1.0" encoding="utf-8" ?>...
2
by: Matt | last post by:
Is there a way to make menu controls behaviours like browser menu like. (file,Edit,View etc) or any other software menu dropdown.. I could do that with inbuild (<items<asp:menu:itemand make the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.