Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / May 2005

Tip: Looking for answers? Try searching our database.

How to a avoid a *huge* viewstate?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mortb - 22 Apr 2005 14:23 GMT
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
mortb - 26 Apr 2005 15:42 GMT
What I needed was the viewstate decoder!

http://www.pluralsight.com/tools.aspx

What a relief I felt when I found this. I saw that the problem was stemming
from my checkboxes so I wrot my own chekbox control and now my view state is
less than a kb!

cheers,
mortb

> I'm writing a custom treeview control.
> The treeview is a htmltable with the nodes and branches,
[quoted text clipped - 11 lines]
> Please help!
> mortb
Ken Cox [Microsoft MVP] - 01 May 2005 18:38 GMT
If you don't need viewstate for controls, just turn it off to cut the
traffic substantially.

> What I needed was the viewstate decoder!
>
[quoted text clipped - 6 lines]
> cheers,
> mortb

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.