Hi,
Thanks for your post. We are able to dynamically set the TREENODESRC
attribute of a TreeNode, after that, please remember to call the databind
method to render the changes. For example:
private void Page_Load(object sender, System.EventArgs e)
{
this.TreeView1.TreeNodeSrc = "TreeView.xml";
this.TreeView1.DataBind();
}
Please refer to MSDN online for detailed information and sample code:
http://msdn.microsoft.com/library/de...bcontrols/beha
viors/library/treeview/treeNodeSrc.asp
Hope this helps.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.