M
Mrunal
Hi,
I am using TreeView Control to store data. The problem is
that the code within the events is not fired.. i want to
add the text of selected node to a list.
-----------Code file----------------------
protected Microsoft.Web.UI.WebControls.TreeView TreeCtrl;
public ListBox ListBox1;
public Label mylabel;
void mySelectChangeFn(Object sender,
TreeViewSelectEventArgs e)
{
ListBox1.Items.Add(e.NewNode.ToString());
}
-------------ASPX file---------------------
<iewc:treeview id="TreeCtrl"
onclick="myClick"
onselectedindexchanged="mySelectChangeFn"
autopostback="true"
runat="server"
SystemImagesPath="/webctrl_client/1_0/treeimages/">
</iewc:treeview>
<asp:ListBox id="ListBox1" runat="server" Width="146px"
Height="184px" />
Any ideas what could be the problem..? the tree is
displaying properly..
Thanks
Mrunal
I am using TreeView Control to store data. The problem is
that the code within the events is not fired.. i want to
add the text of selected node to a list.
-----------Code file----------------------
protected Microsoft.Web.UI.WebControls.TreeView TreeCtrl;
public ListBox ListBox1;
public Label mylabel;
void mySelectChangeFn(Object sender,
TreeViewSelectEventArgs e)
{
ListBox1.Items.Add(e.NewNode.ToString());
}
-------------ASPX file---------------------
<iewc:treeview id="TreeCtrl"
onclick="myClick"
onselectedindexchanged="mySelectChangeFn"
autopostback="true"
runat="server"
SystemImagesPath="/webctrl_client/1_0/treeimages/">
</iewc:treeview>
<asp:ListBox id="ListBox1" runat="server" Width="146px"
Height="184px" />
Any ideas what could be the problem..? the tree is
displaying properly..
Thanks
Mrunal