ASP.NET TreeView and Selecting the Selected Node

后端 未结 9 1600
無奈伤痛
無奈伤痛 2020-12-14 11:02

How do I capture the event of the clicking the Selected Node of a TreeView? It doesn\'t fire the SelectedNodeChanged since the selection has obviously not c

9条回答
  •  没有蜡笔的小新
    2020-12-14 11:42

    protected void Page_Load(object sender, EventArgs e) 
        {
            if (!IsPostBack)
            {
                TreeView1.SelectedNode.Selected = false;
            }
        }
    

    works for me

提交回复
热议问题