<iewc:TreeNode NavigateUrl="d.aspx?id=31" Text="a1>(<%=value1%>)"></iewc:TreeNode

解决方案 »

  1.   

    <iewc:TreeNode NavigateUrl="d.aspx?id=31" Text="a1(<%=value1%>)"></iewc:TreeNode>
    不知道行不行?
      

  2.   

    在Page_Load里遍历树,给每个节点的Text都加上该全局变量值
      

  3.   

    hgknight(江雨.net) ,那具体该怎么做呢?你能给我遍历的提示代码吗?
      

  4.   

    ok,我已经解决这个问题,谢谢你,hgknight(江雨.net)!
      

  5.   

    Public Function GetNode(ByVal id As String, ByVal tnc As Microsoft.Web.UI.WebControls.TreeNodeCollection)
            Dim node As New Microsoft.Web.UI.WebControls.TreeNode()
            Dim tn As New Microsoft.Web.UI.WebControls.TreeNode()
            For Each node In tnc
                If node.ID = id Then
                    Return node
                    Exit Function
                End If
                If node.Nodes.Count <> 0 Then
                    tn = GetNode(id, node.Nodes)
                    If Not (tn Is Nothing) Then
                        Return tn
                        Exit Function
                    End If
                End If
            Next
            Return Nothing
        End Function