Sagar Sawale

Sagar Sawale

  • NA
  • 14
  • 5.6k

Tree node event handaling

May 24 2016 8:52 AM
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)