I have a bug in my simple ASP.Net web application. To reproduce this, you have to Download the below solution.
There is a SQL server .bak file which you need to restore. The connection string in web.config is already pointing to this database “Kentico10” which you are going to restore from .bak file.
Once you run the application it loads the default page “TestPage.aspx”.
There is a tree view on this page. Initially, the tree view is collapsed for the level one.
If you try to expand any of the nodes in level one, it will hit the code behind file testpage.aspx.cs , RemoveAndAddChildNode function .
I put a break point at the Line number 282
This line will remove each child nodes of expanded node. and the next line will replace with a new node.
But the real issue is if we remove the child node using the above line. and if you try to expand any node, the node will never expand.it’s being stuck there and not moves.
But try to comment the same line
But for replacing the nodes, first, i need to remove then I need to add.
So, please help me to expand the node without commenting line 282.