Ok, the base... I'm trying to use CSS and/or jScript to format output from my c# code to make a nice tiered menu...
All the stock options that I've found that I want to use implement <ul>'s inside <li>'s and statically I can make this work without a hitch since the controls are HTML and not .NET...
The problem is that this menu will be created dynamically from a database. Each DB entry has an ID, a name, a parent and an order. and is sorted by parent, then order and there will be some other criteria such as access that determines wether or not each item is returned.
So basically what I'm attempting to accomplish is to create and <asp:bulleted> on the actual page then create this HTML structure dynamically by adding <listitem>s to it where DB items have a parent of 0. This works great.
So for a one level menu I have 10 items and the CSS to make the menu horizontal, colors, mouseovers, etc.
Going further I want these parent menus to have children... by creating <ul>'s inside the parent's <li>..which i can do statically in HTML. and the menu works...but isn't dynamic.
My first attempt to make this happen was to name each <listitem> with an id like "li1" 2..3.. and then when I met a child object (with a parent other than 0) I did a findc
View Complete Post