1. In the menu, if NavigateUrl = "%", it indicates that the node cannot be selected or clicked. You can also set the node Selectable to enable node unavailability or click.
2 In menu and treeview, if a value is assigned to NavigateUrl, NavigateUrl is executed first, while Menu_MenuItemClick and TreeView1_SelectedNodeChanged are not triggered. To trigger Menu_MenuItemClick and TreeView1_SelectedNodeChanged, you must discard the use of the NavigateUrl attribute. Note: you cannot set NavigateUrl to empty. Menu_MenuItemClick and TreeView1_SelectedNodeChanged will also cause page reloading.
3. In treeview, if a node cannot be selected or clicked, you can add a node when generating the node. selectAction = TreeNodeSelectAction. none; (node. selectAction = TreeNodeSelectAction. selectExpand; indicates that the node can be folded or expanded .) Another method is:
<Asp: TreeView ID = "TreeView1"
Runat = "server"
Target = "_ self">
<Nodes>
<Asp: TreeNode Text = "One"
NavigateUrl = "javascript: void (0)">
<Asp: TreeNode Text = "Two"
NavigateUrl = "javascript: void (0)"/>
</Asp: TreeNode>
</Nodes>
<SelectedNodeStyle Font-Bold = "True"/>
</Asp: TreeView>
4 when using menu, frame is generally not recommended. Because of the occlusion problem, the display level of menu is lower than that of frame. You can use menu and iframe together, the display level of menu is higher than that of iframe. The drop-down menu can traverse iframe.