How to a avoid a *huge* viewstate?

M

mortb

I'm writing a custom treeview control.
The treeview is a htmltable with the nodes and branches,
The htmltable is located in a div to make it scrollable when it is larger
than a certain pixel size.
All this is nested in my custom control.
My problem is that the viewstate becomes really large when I add the control
to a test page which does not have any other controls on it.
I've tried to disable the viewstate both on the page, the control and the
htmltable, but nothing seems to work!
The 30kb viewstate is still there.
I have no need to store the contents of the treeview in the viewstate as
this is updated from the database every pageload.

Please help!
mortb
 
K

Ken Cox [Microsoft MVP]

If you don't need viewstate for controls, just turn it off to cut the
traffic substantially.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,888
Messages
2,569,965
Members
46,294
Latest member
HollieYork

Latest Threads

Top