Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Changing viewstate on client

Thread Tools

Changing viewstate on client

Paul K
Posts: n/a
I created a custom datagrid that works similarly to the new GridView control
(using the XML request/response objects to retrieve data in the background
for paging/sorting). Everything is working, but I want to streamline it a

The biggest problem I've had is that the datagrid keeps it's current page
index in viewstate, and viewstate is essentially useless during a client
"callback" because the data in viewstate is out of sync with the events
coming in.

If I could update the viewstate on the client with a new viewstate from the
server, then I wouldn't have to jump through hoops just to get paging to work
- the viewstate would always be in sync with callbacks. I tried just getting
the viewstate in SavePageStateToPersistenceMedium and serializing it with the
LosFormatter class, but I get the "invalid viewstate" exception on any
subsequent calls.

I'm not looking to modify values inside of the viewstate on the client - I'm
looking to update the entire viewstate with a valid viewstate from the web

Does anyone know if this is possible?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ViewState: "function 'ViewState.get_Item' evaluated and returned null" Steph ASP .Net 2 05-11-2011 02:35 PM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
Loading usercontrols, viewstate problem, slighly different from all others "viewstate uc problems" please help... ujjc001 ASP .Net 0 07-27-2005 01:52 PM
Viewstate errors... how do I get viewstate working? mark ASP .Net Building Controls 0 02-20-2004 02:17 PM
Corrupted ViewState (Yes, another issue concerning viewstate) Ben Rush ASP .Net 2 12-05-2003 04:17 PM