473,499 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simpe parent/child menu displayed based on parent item

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
0 2198

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

Similar topics

1
3300
by: jinu | last post by:
Hello, My application loads with a form which is the mdi parent and a menu item click (main menu of the parent form) brings up a child form. I have to wait for a considerable amout of time to...
2
3781
by: Bostonasian | last post by:
I am trying to append options to dropdown in parent window from option items in child window. In parent window, I have following code: <script language="javascript"> function...
4
4543
by: Danny Tuppeny | last post by:
Hi all, I've been trying to write some classes, so when I have a parent-child relationship, such as with Folders in my application, I don't have to remember to add a parent reference, as well as...
11
1389
by: Steven Smith | last post by:
Hi guys I'm sure this is really simple, but passing commands between forms is a whole new thing to me, what I want to do is when I load my child form I would like a menu item on the parent to...
10
3980
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
0
2321
by: Ben | last post by:
Please excuse if this ends up being a double post at some point. I tried posting using another website which crashed, so I am not sure if it will ever get posted. As such I decided to try again...
4
3594
by: raj_genius | last post by:
I hav two queries, whc are as follows: FIRSTLY: is it possible to access the controls(by name) of a parent form(MDI) from its child forms??if yes then how??plzz provide a coded example in VB if...
0
1340
by: ppearson3000 | last post by:
I have 2 forms.. a customer form and an addnew customer form. Basicially when you click on the addnew button, the addnew form opens. In the parent form, I add a new item using the bindingsource......
1
1090
by: coolarian | last post by:
Hi, Please anyone who could help me implement this requirement: From the parent's menu strip item I need to cause a button_click event in one of the child. In my MDI Parent I have this code:...
0
7006
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
7169
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,...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.