1
Answer

Tree node event handaling

Sagar Sawale

Sagar Sawale

8y
304
1
Hello,
I am trying to execute  my following code after click on treeview  node "TreeView1_SelectedNodeChanged1"
 
===Code ===
 
protected void TreeView1_SelectedNodeChanged1(object sender, EventArgs e)
{
string s = TreeView1.SelectedNode.Value;
if (e.Node.Name == null) { return; }
lbTollName = (LinkButton)e.Item.FindControl("lbTollName");
if (lbTollName != null)
{
this.SetTrafficSummary(lbTollName.CommandArgument, lbTollName.Text, lbTollName.CommandName);
}
lbTollName = null;
}
 
 
 
 I want to write above code in selectedNode change event
Answers (1)