I use TreeView in the resource center in the left frame. It is a Microsoft to do things. When the dynamic adds nodes, it always flashes, people give it a sinister, starting to use third parties. TreeView, maybe it's your own reason, always can't satisfy, and finally I decided to calm down to study Microsoft's TreeView.
Since TreeView is a server control, when you set the autopostback into false, click the node does not automatically submit to the server, so there is no flash. But you can't activate the TreeView1.selectedIndexchange event, so TreeView1.selectedIndexchange event does not work! This is a pair of contradictory things!
But now, this contradiction has finally made it honest. My method is to place a module according to the condition, filter the record and generate an XML file in an ASPX page, and then use Microsoft.xmlhttp on the client. Execute this ASPX page, and bind this XML file and the node clicked in the user, haha, so, get the job! ! !