Haha, TreeView, you are got by me.

zhaozj2021-02-16  55

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! ! !

转载请注明原文地址:https://www.9cbs.com/read-17382.html

New Post(0)