哪位高手帮我解释一下这段C#中ASP.NET的代码是什么意思
publicvoidGetChildNode(TreeNodeNode){foreach(TreeNodenodeinNode.ChildNodes){if(node.C...
public void GetChildNode(TreeNode Node)
{
foreach (TreeNode node in Node.ChildNodes)
{
if (node.Checked && (node.Value != "0"))
{
this.StrChecked = this.StrChecked + node.Value + "#";
}
this.GetChildNode(node);
}
}
public void SetChildNode(TreeNode Node, string sSplit)
{
foreach (TreeNode node in Node.ChildNodes)
{
if ((sSplit.IndexOf(node.Value) >= 0) && (node.Value != "0"))
{
node.Checked = true;
}
this.SetChildNode(node, sSplit);
}
} 展开
{
foreach (TreeNode node in Node.ChildNodes)
{
if (node.Checked && (node.Value != "0"))
{
this.StrChecked = this.StrChecked + node.Value + "#";
}
this.GetChildNode(node);
}
}
public void SetChildNode(TreeNode Node, string sSplit)
{
foreach (TreeNode node in Node.ChildNodes)
{
if ((sSplit.IndexOf(node.Value) >= 0) && (node.Value != "0"))
{
node.Checked = true;
}
this.SetChildNode(node, sSplit);
}
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询