1

I have only one question : I have ASP.NET TreeView control. Each node in the TreeView has a Tag property assigned. All i Want to do is to catch the NodeClicked event in JavaScript and display the TagProperty in the textbox . Is this possible ?

Thank you,

1 Answer 1

1

You can add call to javascript function inside, treeview SelectedNodeChanged event handler. For instance :

protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e){
  // Do whatever you're doing
  Node.Attributes.Add("OnClick","javaScriptName()");
}

Maybe, it's more easy to use the behind code (inside the event above) to change the textbox value.

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.