Last post Oct 11, 2016 07:16 AM by Nan Yu
Member
3 Points
36 Posts
Oct 10, 2016 06:10 PM|Rebotea|LINK
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
Oct 10, 2016 09:47 PM|Rebotea|LINK
Sorry i get the code.
if (TreeView1.SelectedNode.Depth == 2) {
}
All-Star
18815 Points
3831 Posts
Oct 11, 2016 07:16 AM|Nan Yu|LINK
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
Member
3 Points
36 Posts
TreeView1_SelectedNodeChanged laste leaf
Oct 10, 2016 06:10 PM|Rebotea|LINK
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
Member
3 Points
36 Posts
Re: TreeView1_SelectedNodeChanged laste leaf
Oct 10, 2016 09:47 PM|Rebotea|LINK
Sorry i get the code.
if (TreeView1.SelectedNode.Depth == 2)
{
}
All-Star
18815 Points
3831 Posts
Re: TreeView1_SelectedNodeChanged laste leaf
Oct 11, 2016 07:16 AM|Nan Yu|LINK
Hi Rebotea,
You could also check whether current node has child nodes :
Best Regards,
Nan Yu