I recently answered some questions about the selection of the TreeView node on the client, and did two examples on the code provided by netizens. It is a pity that the original post has been lost, and the sorting is written as a document. It is convenient to write. These two examples do not use the codeBehind mode. You can run the first example when canceling or selecting the node. When the status is selected, the child node is also canceled Or select changes to you need to note that if you want to initially set Treenode is selected, you can only set it on the client. If the server-side setting Treenode is selected, the client uses GetAttribute ("Checked"), and the resulting value is always True.
<% @ Register TagPrefix = "iewc" Namespace = "Microsoft.Web.UI.WebControls" Assembly = "Microsoft.Web.UI.WebControls, Version = 1.0.2.226, Culture = neutral, PublicKeyToken = 31bf3856ad364e35"%>