469,609 Members | 1,846 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Simpe parent/child menu displayed based on parent item


I need to create a simple parent/child hierarchical menu. I have alread
used the Treeview control but my requirement is slightly different than
the Treeview control. I already have the kind of menu I am talking
about, written in Classic ASP, but I need to write the entire menu thing
in Asp.Net using CSharp.

I have a Sql table which has large number of menu items with problemId
and parentId, through which I am trying to create and display a menu
control. But when I load the page I want to display only the parent
items and not child items, which I have done already and it is fine.
Now, what I want is, since the parent items are displayed with a right
arrow button indicating that if the user clicks on those button which
has the right arrow, then they will be able to see the Children items of
that particular parent item. And then if the parent item has many
children being parent to other children then they also should have the
right arrow which will then display if it has any children.

The scenario is what I have written above. What I am struggling to do
here is that, when I click on the parent item, I get the Children item
in a different page. But what I want is like the following, in the same

Parent 1
Children 1 - Parent 1
Children 2
Children 4 - Parent 2
Children 5
Children 6
Children 7

Parent 2
Parent 3
Parent 4

And as I load the parent items initially, I want to load the Child
items depending upon which parent item the user clicked, and I don't
want to load all the parent/child items when the page is loading since
the data is too heavy.

I have been looking in the forums and other resources to get an idea to
program this kind of menu, but I have been only little successful. So
any help or links to any other resources or articles is very much

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
0 1956

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Danny Tuppeny | last post: by
11 posts views Thread by Steven Smith | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.