2012年5月23日

.net的web项目中treeview的checkbox的选中/非选中

摘要: string nodeAllVal= ""; foreach (TreeNode t in TreeView1.CheckedNodes) { nodeAllVal+= t.Text + ",";} 这样就获得了所选的所有的节点值 注意这个是 TreeView 有ShowCheckBoxes="All" 这个属性时候才这样取的 Html代码 <asp:TreeView ID = "tree" runat = "server" ShowCheckBoxes="All" W 阅读全文

posted @ 2012-05-23 10:06 bicabo 阅读(1465) 评论(0) 推荐(0) 编辑

导航