You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
707 B
16 lines
707 B
2 days ago
|
<%@ Page Language="VB" %>
|
||
|
<%@ Import Namespace="obout_ASPTreeView_2_NET" %>
|
||
|
<%@ Register TagPrefix="ob" TagName="MyTreeView" Src="vb_MyTreeView.ascx" %>
|
||
|
|
||
|
<script language="VB" runat="server">
|
||
|
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
|
||
|
' following node will be displayed only on this page
|
||
|
myTree.oTree.Add("root", "a2", "Some Page Specific Node", False, Nothing, Nothing)
|
||
|
End Sub
|
||
|
|
||
|
Protected Overrides Sub OnPreRender(ByVal e As EventArgs)
|
||
|
' following node will be displayed only on this page
|
||
|
myTree.oTree.Add("root", "a3", "Another Page Specific Node", False, Nothing, Nothing)
|
||
|
' override selected node with a2 for this page
|
||
|
myTree.oTree.SelectedId = "a2"
|