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:
01342078
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform