Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridView and EnabledViewState
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01341995
Message ID:
01342149
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>I need to find out the informaiton on ViewState for different .NET controls.

This isn't really comprehensive list (it's missing a lot of the basic controls), but here's what I found with some searching:
Control  	                Properties Stored in Control State
CheckBoxList 	PreviousItemCount
                                PreviousOffset
ContentPager 	CurrentPage
                                PageCount
DetailsView 	PageIndex
                                Mode
                                DefaultMode
FormView 	                PageIndex
                                Mode
                                DefaultMode
GridView 	                EditIndex
                                SelectedIndex
                                PageIndex
                                SortDirection
                                SortExpression
ListControl (base class for BulletedList, CheckBoxList, DropDownList, ListBox, and RadioButtonList) 	SelectedIndices
LoginView 	                TemplateIndex
MultiView 	                ActiveViewIndex
Table 	                CurrentRow
                                ViewMode
>BTW, if you're not using GridView, what you're using instead?

We're primarily using the controls from Telerik. They actually have a section in the manual about what you give up when you disable viewstate for their grid control.

There are also mechanisms available for storing viewstate in the session instead of in the page. I tried this out at some point and it seemed like some things still got pushed into the page and I didn't gain as much as I'd hoped, so I ultimately shut it off and went back to the normal way of handling viewstate.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform