473,508 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1245

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

Similar topics

0
347
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
1936
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
1702
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
4693
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
1344
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
996
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
1955
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
1287
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
3051
by: kirankumarn | last post by:
How to bind menu items in asp:Menu control using SiteMapDataSource from code behind(c#) Thanks in advance
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
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
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7504
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...
1
5059
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...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.