在treeview中:知道一个treenode的id或者text如何获得index? 利用treenode.getChildren()方法,返回子结点的数组 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TreeNode node=TreeView1.GetNodeFromIndex("0.0");string text=node.Text;string id=node.ID; 这样就可以了(text同) dim tpNode as New Microsoft.Web.UI.WebControls.TreeNode() dim theIndex as string If tpNode.ID = "你知道的ID号" Then theIndex = tpNode.GetNodeIndex.ToString End if注意:外边需要包一层循环遍历一下。 验证码需要加密吗 菜鸟请教关于服务器控件的问题 databinder.eval问题?! 求助锁定表头及列的简单方法 关于登录的小问题,,请教高手,在线等待! 难题。。如何实现存储过程参数的类型正确传递?欢迎各位大侠指点,,,谢谢。。 RBAC安全访问控制 谁来算一算???返回值 asp.net中html控件中使用Text Area怎样使它获得焦点事件. ASP.NET 入门遇到的问题! 怎样修改水晶报表中的text对象的值?急! 如何做试用版的程序,就是只能使用一个月,以后不能再使,来者有分!
string text=node.Text;
string id=node.ID;
dim theIndex as string If tpNode.ID = "你知道的ID号" Then
theIndex = tpNode.GetNodeIndex.ToString
End if注意:外边需要包一层循环遍历一下。