By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,190 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,190 IT Pros & Developers. It's quick & easy.

Simpe parent/child menu displayed based on parent item

P: n/a
Hi,

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
page.

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
appreciated.

Regards,
Karthick
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.