protected void btnGetCheckedValues_Click(object sender, EventArgs e) { TreeNode[] nodes = Tree1.GetCheckedNodes(); if (nodes.Length > 0) { StringBuilder sb = new StringBuilder(); foreach (TreeNode node in nodes) { sb.AppendFormat("{0} ", node.Text); } labResult.Text = "复选框选中的值:" + sb.ToString(); } else { labResult.Text = "没有复选框被选中"; } }