不用AJAX能够实现上面这功能吗,谢谢!!!
那位大侠帮忙顶一下啊!
你想去讀取你曾經選取過的這個節點的值是吧?
我曾經做過這種,我給你一段代碼:
newTN = New TreeNode
newTN.Value = dvRow.Item("ID").ToString.Trim
newTN.Text = dvRow.Item("ID").ToString.Trim & "-" & dvRow.Item("SHOWNAME").ToString.Trim
'???唳摨?葉??
strID = dvRow.Item("ID").ToString.Trim
strShowName = dvRow.Item("SHOWNAME").ToString.Trim
strName_EN = dvRow.Item("NAME_EN").ToString.Trim
strName_Local = dvRow.Item("NAME_LOCAL").ToString.Trim
'頧祆?????
strID = setJSValue(strID)
strName = strID & "-" & setJSValue(strShowName)
strName_EN = setJSValue(strName_EN)
strName_Local = setJSValue(strName_Local)
newTN.NavigateUrl = "javascript:FunOnTreeNodeClick('" & strID & "','" & strName & "','" & strName_EN & "','" & strName_Local & "')"'在這裡,你將你這個節點的Test或Value傳到JS中,然後,你在JS中將這個值賦給一個隱藏框,你在讀這個節點值的時候,去讀那個隱藏框的值就行了。
TN.ChildNodes.Add(newTN)
Next