I have a treeview with textbox in asp.net c#. I want to select the checkbox by clicking on the treeview node name. How is it possible?
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rahul BansalRank #143 · 15.9K reputationPosted Apr 27, 2015, 3:06 AM EDT
ASPX Page:
.CS File
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
CheckBox1.Checked = true;
CheckBox1.Text = TreeView1.SelectedNode.Text;
}