IE treeview control viewstate -> sessionstate

  • Thread starter Thread starter rickpayne
  • Start date Start date
R

rickpayne

I've noticed the IE treeview asp.net web control has a heavey viewstate. I
have been trying to use session variables to store its state instead of
storing it in viewstate. Has anyone successful used session state to store
state info?
 
Yes but that doesn't fix the problem either. The issue (i understand it has
been resolved in 2.0) is that with each post back the tree control maintains
the state of the current and previous state. With every postback, the size
of the viewstate builds and causes the tree performance to decline. Use the
treeview for a small number of nodes and when excessive postbacks can be
minimized.
 
Back
Top