Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 04:38 AM
clintonG
Guest
 
Posts: n/a
Default Which Node Did I Select?

When the following XML is loaded into a tree control and a <name> node is
selected I have no idea how to determine how to identify which <student>
parent node the child belongs to when all parents have the same name.

The TreeNode.Parent property returns the name of the parent but I need to
identify which parent so the data in the selected node can be populated with
data or modified as the case may be.

An example of the XML follows...

<school>
<name>School of Hard Knocks</name>
<student>
<name>John</name>
</student>
<student>
<name>Jane</name>
</student>
</school>

Paste your code if handy but directing me to the right methodology or
referral to documents will be appreciated.
Thanks for your comments...

<%= Clinton Gallagher


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.