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:
01342079
Views:
14
>>
>>No, what I found out is that regardless of EnabledViewState property on each postback the GridView's current page (last visited page) is preserved. I would assume it would not be preserved when I set this property to false.
>>
>>Other than that I didn't notice any side effects by disabling the ViewState for GridViews. The page started to load quicker, of course.
>
>I don't really use GridView, so I don't know exactly what behavior is different when viewstate is enabled or disabled. It's different for every control (in some cases some events won't fire when viewstate is disabled). For some controls, it hardly makes any difference whatsoever. For the GridView, it's probably posting back some of it's data that isn't persisted in viewstate.

I need to find out the informaiton on ViewState for different .NET controls.

BTW, if you're not using GridView, what you're using instead?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform