How can I tell if a treeview node already exists?

  • Thread starter Thread starter jm
  • Start date Start date
J

jm

I have a vb.net .aspx page. It has a treeview and a form.

When I create a new order in my database I have the tree create a
parent node at the top of the tree.

Now, when I edit the form, autopostbac, or update, etc. and do a
postback it adds the same node again.

I cannot figure out how to test if the node already exists and if it
does, then only create the children. Please assist. Thank you.
 
I have a vb.net .aspx page. It has a treeview and a form.

When I create a new order in my database I have the tree create a
parent node at the top of the tree.

Now, when I edit the form, autopostbac, or update, etc. and do a
postback it adds the same node again.

I cannot figure out how to test if the node already exists and if it
does, then only create the children. Please assist. Thank you.

I know am not the only person to ever wonder this!
 
Back
Top