Bounz wrote:
Can you tell me how can I use client side script to solve the problem?
Do you mean you want to use client side script to get rid of unnecessary code like "doPostBack"? IMO, javascript cannot help you here because this unnecessary code is emitted in the Render method of the TreeNode class by default. In this case, you might want to customize the TreeView control so that when it renders, the Text of the TreeNode, not that whole script, is rendered in the RenderContents method of the TreeView.