473,322 Members | 1,347 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,322 software developers and data experts.

Specifying style for subitems in the ASP Menu StaticItemTemplate

I have a navigation control (using the Menu control) that I want to only
display static items (nothing dynamic). My rendering looks something like
this:

<ul>
<li><a href="#"><div class="pad">Level 1</div></a></li>
<li><a href="#"><div class="pad">Level 1</div></a></li>
<li class="sub"><a href="#"><div class="pad-sub">Level 2</div></a></li>
<li><a href="#"><div class="pad">Level 1</div></a></li>
</ul>

So I can use the StaticItemTemplate with no problem to create the level 1
menu items, but the challenge comes when I have subitems... how do you
determin if a navigation node is a child to an existing one?

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp
http://www.andrewconnell.com/blog

Nov 15 '06 #1
0 2997

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

Similar topics

6
by: Richard | last post by:
Hi. I use a ListView to display data in tabular form. Each ListView row corresponds to a data record. The ListView Item of the record is the record key or code. Each SubItem in that row...
2
by: J. Jespersen | last post by:
Hi people, I'm trying to build a menu i asp.net 2.0 (RC) using the Menu control and an XmlSiteMapProvider. I want all letters of my menuitems to be capitalized, but i want the first letter in...
0
by: Jack | last post by:
Hello all, In code, I'm updating the text property of subitems in a Listview which is in Details view. This may be a dumb question, but I can't seem to find a good way to refresh the listview to...
10
by: Adam Honek | last post by:
This is probably a silly question but oh well, I can't find the answer looking via code. Having an imagelist already, how does one set an icon for a list view's sub items? I'm using the code...
0
by: jtencate | last post by:
I am trying to add an OnClientClick event to links in an asp:Menu. I tried using a StaticItemTemplate to bind the MenuItem data to a LinkButton with an OnClientClick attribute. This works fine to...
0
by: jayaprakashbojja | last post by:
Hi, I have Two iframes in an HTML. top and bottom. The top iframe contains the code for dropdown menu. So i set z-index property to 2 so that full drop down menu shold be visible. But it's not...
0
by: vincent90152900 | last post by:
How to remove the arrow of the menu .net component? My code here <StaticMenuStyle CssClass="p12h20-gray" HorizontalPadding="2" VerticalPadding="2" /> <StaticMenuItemStyle...
2
by: alexandis | last post by:
I have menu bound to sitemap file. This is a piece of code <asp:menu ... > <StaticItemTemplate> <%# ((MenuItem)Container.DataItem).Selected ? : %> </StaticItemTemplate> </asp:menu> I check...
2
by: AJ | last post by:
Hi, I'm trying to customize the Menu navigation control so that the the static items have two lines. The first line will be the text (for example "About Us"), and the second line will be a short...
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...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.