hi
How can i simply now is i´m in the last leaf and go to onother page please.
My last leaf is like this "--/--/--"
Response.Redirect("~/page 3.aspx");
Thank you
Hi Rebotea,
You could also check whether current node has child nodes :
TreeNode currentNode = treeview.SelectedNode; if (currentNode.ChildNodes.Count==0) { }
Best Regards,
Nan Yu
Sorry i get the code.
if (TreeView1.SelectedNode.Depth == 2) {
}