hi,
I want to save changes made to treeview to database after adding/deleting/rearranging nodes.
I tried to loop through the XML which i got from TreeView.GetXml();
This is the XML i got :
<Tree>
<Node Text=\"Hierarchy1\" Value=\"100269\" Expanded=\"True\">
<Node Text=\"ChildHierarchy1\" Value=\"100270\" Selected=\"True\" Expanded=\"True\">
<Node Text=\"UNITED ARAB EMIRATES\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
<Node Text=\"UNITED KINGDOM\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
<Node Text=\"UNITED STATES OF AMERICA\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
</Node>
</Node>
<Node Text=\"BIG ROOT - Cambridge\" Value=\"1\">
<Node Text=\"UNITED STATES OF AMERICA\" Value=\"1139\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\">
<Node Text=\"CALIFORNIA\" Value=\"1522938\" Category=\"State\">
<Node Text=\"BURBANK\" Value=\"1572835\" Category=\"City\" />
<Node Text=\"SAN DIEGO\" Value=\"1572835\" Category=\"City\" />
</Node></Node></Node>
</Tree>"
From this XML string i want to update the database.
I want to save changes made to treeview to database after adding/deleting/rearranging nodes.
I tried to loop through the XML which i got from TreeView.GetXml();
This is the XML i got :
<Tree>
<Node Text=\"Hierarchy1\" Value=\"100269\" Expanded=\"True\">
<Node Text=\"ChildHierarchy1\" Value=\"100270\" Selected=\"True\" Expanded=\"True\">
<Node Text=\"UNITED ARAB EMIRATES\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
<Node Text=\"UNITED KINGDOM\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
<Node Text=\"UNITED STATES OF AMERICA\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
</Node>
</Node>
<Node Text=\"BIG ROOT - Cambridge\" Value=\"1\">
<Node Text=\"UNITED STATES OF AMERICA\" Value=\"1139\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\">
<Node Text=\"CALIFORNIA\" Value=\"1522938\" Category=\"State\">
<Node Text=\"BURBANK\" Value=\"1572835\" Category=\"City\" />
<Node Text=\"SAN DIEGO\" Value=\"1572835\" Category=\"City\" />
</Node></Node></Node>
</Tree>"
From this XML string i want to update the database.