473,386 Members | 1,810 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,386 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 3002

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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...

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.