AutoPostBack for TreeView in ASP.Net 2
-
Hi! I can't find autoPostBack property for TreeView control at my asp script. But I still want ASP don't generate doPostBack script for TreeView. What have I to do for this?:confused: -- Digitally yours, Bounz
-
So. Sometimes I have to fill my Tree with a lot of nodes and leaves. So I receive html with size about 1.5-2 Mb. It's too large. I looked at html-code and found out, that there is a lot of unnecessary code, related with doPostBack javascript. Can you tell me how can I use client side script to solve the problem? :-O -- Digitally yours, Bounz
-
So. Sometimes I have to fill my Tree with a lot of nodes and leaves. So I receive html with size about 1.5-2 Mb. It's too large. I looked at html-code and found out, that there is a lot of unnecessary code, related with doPostBack javascript. Can you tell me how can I use client side script to solve the problem? :-O -- Digitally yours, Bounz
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 theTreeNode
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 theRenderContents
method of the TreeView.