Appbox in Main.aspx.cs
if (menu. Istreeleaf)
{
Node. Leaf = true;
}
Else
{
Node. Singleclickexpand = true;
}
---if node. Singleclickexpand = True when the current node node has a linked page, the linked page opens in a new window when clicked.
?---I want to open the linked page as a tab in main.
This means: Even if the tree is still below the leaf, if there is a link to the page, the node will open the linked page as a tab. Instead of opening the linked page in a new window.---
Specific practices:
if (! String.IsNullOrEmpty (menu. NAVIGATEURL))
{
Node. Enablepostback = false;
Node. NAVIGATEURL = RESOLVEURL (menu. NAVIGATEURL);
Node. OnClientClick = String.Format ("Addexampletab (' {0} ', ' {1} ', ' {2} ')", node. NodeID, ResolveUrl (menu. NAVIGATEURL), node. Text.replace ("'", ""));
}
Appbox Main tree Node Click event JS (also page link for leaf node)