This event will not be actively postback and needs to be manually triggered by javascript. We have made some improvements to the methods found online and added UpdatePanel to avoid the page being flashed continuously. This is not considered here, because since the project has allowed the use of TreeView server control, don't care about an additional UpdatePanel.
Front Desk Page
<html> <head runat="server"> <title></title> <script type="text/javascript"> function postBackByObject() { var o = ; if ( == "INPUT" && == "checkbox") { //The first parameter writes the UpdatePanel ID, otherwise the entire page will be flashed. __doPostBack("UpdatePanel1", ""); } } </script> </head> <body> <form runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:TreeView runat="server" ID="treeView1" OnTreeNodeCheckChanged="treeView1_TreeNodeCheckChanged"> </asp:TreeView> </ContentTemplate> </asp:UpdatePanel> </form> </body> </html>
Backend page
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ("onclick", "postBackByObject()"); } }
The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.