473,320 Members | 2,122 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,320 software developers and data experts.

Using menu control with sitemapdatasource

Hi,

I am trying to use the menu control to create a menu similar to the one
that ASP.net site has and I am having a little trouble. The menu is
binded to a sitemapdatasource and are both placed on a master page. The
sitemapdatasource has ShowStartingMode set to false and the sitemap
file looks like:

StartNode
Home
Reports
Report 1
Report 2
Report 3
Projects
Project

The Menu control looks like:
<asp:Menu ID="Menu1" runat="server"

DataSourceID="SiteMapDataSource1" MaximumDynamicDisplayLevels="0"

Orientation="Horizontal" EnableViewState="true" StaticDisplayLevels=2>

<StaticMenuItemStyle BackColor=Aqua />

<StaticSelectedStyle BackColor=Beige />

</asp:Menu>
The problem I am having is that when the user clicks through a link on
the page that leads to Report 1, nothing is selected in the menu - but
i need the Reports to be selected as Report 1 is a child of Reports.

Any idea on how to solve this problem?

thanks

tony

Nov 19 '05 #1
0 1231

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

Similar topics

0
by: gjergj | last post by:
Hi, I am trying to use the menu control to create a menu similar to the one that ASP.net site has and I am having a little trouble. The menu is binded to a sitemapdatasource and are both placed...
6
by: dpomt | last post by:
I have a quite strange problem with the Menu control. I have ten languages and each language has a SiteMapDataSource and a Menu. For better performance, I am creating a hashtable (language ->...
1
by: denappel | last post by:
Hi all, We're currently developping an asp.net 2.0 project, and ran into a problem with the new menu control. At the first load of the page, no errors are generated, but after a first...
2
by: Daves | last post by:
my 2.0 menu control has this root node which I want to hide normally the showrootnode property is set to false on the sitemapdatasource for the menu but I am actually populating it my self from a...
0
by: chris.mcinnes | last post by:
G'day, I'm trying to implement a graphical horizontal Menu-bar feeding off a SiteMapDataSource with some top-level menu-items and a couple of sub-menus. I've managed to get the menu bar...
0
by: michael.b.cizmar | last post by:
I am attempting to place a breadcrumb component into a master page. I have tried to implement even the simplest web.sitemap. Does anyone know what would cause the following error? Michael ...
2
by: mocsoft | last post by:
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...
8
by: empire5 | last post by:
I want to eliminate the little triangular arrow poinger that appears tot he right of the menu item. Which control setting lets me do that.
1
by: kirankumarn | last post by:
How to bind menu items in asp:Menu control using SiteMapDataSource from code behind(c#) Thanks in advance
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.