Haven't worked with the TreeNode class, but normally there's a method to find a
node, and you've used the one to add a node. If you can't find the method to
getElementByID() or something like it, loop through the nodes until it's name
matches, then add your child node.
hth,
tom mallard
.net web applications
consumer product design
----- Original Message -----
From: Sharon<mailto:[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> ;
[email protected]<mailto:[email protected]> ; [EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]> ; [EMAIL PROTECTED]<mailto:[EMAIL
PROTECTED]> ; [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> ; [EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]> ; [EMAIL PROTECTED]<mailto:[EMAIL
PROTECTED]> ; [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
Sent: Saturday, March 11, 2006 4:29 PM
Subject: [AspNet2] TreeNode class issue
Hi All,
I have a heirarchy of nodes. Meaning I create a node (A) and add nodes
(B,C,D) to its Nodes property. Now the collection Looks Like
A
B
C
D
What I need to do is add a node(E) to C. Which will make it look like
A
B
C
E
D
Now the problem is I have currentnode property which stores node C. I have to
find the position of the currentnode property in the heirarchy and add a node
(E) to it.
I sincerely hope I have not confused anyone.
Thanks
Sharon
[Non-text portions of this message have been removed]
SPONSORED LINKS Object
oriented<http://groups.yahoo.com/gads?t=ms&k=Object+oriented&w1=Object+oriented&w2=Programming+languages&c=2&s=48&.sig=f6H4QQqcmcp9kaxQRYmjcw>
Programming
languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Object+oriented&w2=Programming+languages&c=2&s=48&.sig=r1ya7ggnEBNyfAH5-mYlDw>
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "AspNet2<http://groups.yahoo.com/group/AspNet2>" on
the web.
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service<http://docs.yahoo.com/info/terms/>.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNet2/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/