我的程序,你参考下先
Private Sub Refresh_ListView()
Select Case Session("sr")
Case "0"
Response.Write("<script>parent.frrighttop1.location.href='righttop_receive.aspx?startdate=" & Session("startdate") & "&count=" & Session("count") & "';</script>")
Case "1"
Response.Write("<script>parent.frrighttop1.location.href='righttop_send.aspx?startdate=" & Session("startdate") & "&count=" & Session("count") & "';</script>")
End Select
End Sub
Private Sub Refresh_ListView()
Select Case Session("sr")
Case "0"
Response.Write("<script>parent.frrighttop1.location.href='righttop_receive.aspx?startdate=" & Session("startdate") & "&count=" & Session("count") & "';</script>")
Case "1"
Response.Write("<script>parent.frrighttop1.location.href='righttop_send.aspx?startdate=" & Session("startdate") & "&count=" & Session("count") & "';</script>")
End Select
End Sub
Response.Write("<script>parent.frrightbottom2.location.href='rightbottom2.aspx?information_id=" & Session("information_id") & "';</script>")
Dim tmpNd As New TreeNode
tmpNd.ID = CType(reader("ID"), Integer)
tmpNd.Text = CType(reader("Name"), String)
tmpNd.NavigateUrl = CType(reader("PageLink"), String)
tmpNd.ImageUrl = Server.MapPath("..") & "\images\TreeImg\folder.gif"
tmpNd.Target = "mainFrame" '注意这一句,指到框架中别的页面!
Me.TreeView.Nodes.Add(tmpNd)
http://218.56.11.178:8018/FileDown.aspx?FID=42.看这个例子,对你一定有启发:
http://218.56.11.178:8018/FileDown.aspx?FID=2463.这个论坛也使用了树(asp.net+C#+MSSQL 2000),并且代码完全开放,还包含了其他一些常用的asp.net编程技巧,演示了TREE控件如何和数据库结合,动态显示库中的数据:
http://218.56.11.178:8018/FileDown.aspx?FID=212论坛的使用演示地址,在这里:
http://expert.kaer.cn/提供站点:http://soft.kaer.cn 希望大家多支持!
ftp://soft.kaer.cn 可以直接用IE匿名访问,目前速度没限制
左边是微软提供的树形控件Treeview
有高手吗?
你的代码tmpNd.NavigateUrl = CType(reader("PageLink"), String)是从数据库中取的值,哪right怎么知道你选中那个node??????
哪right怎么知道你选中那个node??????就是要研究的问题!!!!!!!!!!!!!!!!!!!!!!
<a href=# onclick="javascript:window.parent.left.location='a.aspx';"
树型控件中的node的Navegater属性赋值于b.aspx,然后target属性赋"right"