Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GridView and EnabledViewState
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01341995
Message ID:
01342149
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform