Why my TreeNodePopulate of TreeView contol is not fired?
-
Hi all, I have a treeview control, loading data using an xml file, and have a trigger [TreeView1_TreeNodePopulate] in the codebehind. Don't know for some reason it is not getting fired. Even though I'm raising an error in my trigger, it seems it doesn't work. Could anyone help me find this PLEASE? Here is my aspx:
DataFile="Book.xml" runat="server">
codebehind:
protected void Page_Load(object sender, EventArgs e) { TreeView1.TreeNodePopulate += new TreeNodeEventHandler(TreeView1_TreeNodePopulate); } protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e) { throw new Exception("alsdjfla"); }
Thanks A LOT. Muthu -
Hi all, I have a treeview control, loading data using an xml file, and have a trigger [TreeView1_TreeNodePopulate] in the codebehind. Don't know for some reason it is not getting fired. Even though I'm raising an error in my trigger, it seems it doesn't work. Could anyone help me find this PLEASE? Here is my aspx:
DataFile="Book.xml" runat="server">
codebehind:
protected void Page_Load(object sender, EventArgs e) { TreeView1.TreeNodePopulate += new TreeNodeEventHandler(TreeView1_TreeNodePopulate); } protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e) { throw new Exception("alsdjfla"); }
Thanks A LOT. Muthuset
PopulateOnDemand = true
Calin -
set
PopulateOnDemand = true
Calin