如何在ASP.NET中让TREEVIEW控件每次展开节点时不刷新页面
给父节点设置属性:parNode.PopulateOnDemand = true;
后台追加两个方法:
1.protected void PopulateNode(object sender, TreeNodeEventArgs e)
{
PopulateNode(e.Node);
}
2.private void PopulateNode(TreeNode node)
{
//追加子节点
}
给父节点设置属性:parNode.PopulateOnDemand = true;
后台追加两个方法:
1.protected void PopulateNode(object sender, TreeNodeEventArgs e)
{
PopulateNode(e.Node);
}
2.private void PopulateNode(TreeNode node)
{
//追加子节点
}
多重随机标签