M
Mark Goldin
I have a TreeView control and two radiobuttons on my Web form.
I want to change data source (XML file) of the tree when the user clicks
on buttons.
Here is Codebehind the buttons:
private void RadioButton1_CheckedChanged(object sender, System.EventArgs e)
{
TreeView1.TreeNodeSrc = "data.xml";
}
private void Radiobutton2_CheckedChanged(object sender, System.EventArgs e)
{
TreeView1.TreeNodeSrc = "charttreexslt.xml";
}
Autopostback is enabled for both.
Nothing happens when I select either button.
What am I missing here?
I want to change data source (XML file) of the tree when the user clicks
on buttons.
Here is Codebehind the buttons:
private void RadioButton1_CheckedChanged(object sender, System.EventArgs e)
{
TreeView1.TreeNodeSrc = "data.xml";
}
private void Radiobutton2_CheckedChanged(object sender, System.EventArgs e)
{
TreeView1.TreeNodeSrc = "charttreexslt.xml";
}
Autopostback is enabled for both.
Nothing happens when I select either button.
What am I missing here?