If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Invalid viewstate

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-03, 03:43
hjxfabio hjxfabio is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Invalid viewstate

Hello Guys. I am currently doing an ASP.Net project.. I need to do postback on a page as after I have chosen a value from a dropdownlist, I need to update it to a text field on the same page as well. As there are quite a number of records in the dropdownlist, I received an error stating "The viewstate is invalid or page is corrupted". Is it because that the viewstate size is not big enough? If that is the case, what should I do to allow the page to work correctly. Please help. Thanks a lot.
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 23:32
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
How large is the list ?
Reply With Quote
  #3 (permalink)  
Old 12-04-03, 02:40
hjxfabio hjxfabio is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Actually it depends. One was around 2000 items in the list. And immediately after postback, the error came out. Another was around 200 over items in the list. And after a few postback, the same problem came out as well. However the strange thing is that, I tried on different PCs and some got this problem while some don't. That is why I am wondering why I get this error.
Reply With Quote
  #4 (permalink)  
Old 12-04-03, 16:48
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Where is the list being generated from ? How long does it take to load the initial list ? 2000 items brings up other issues as well...
Reply With Quote
  #5 (permalink)  
Old 12-04-03, 20:05
hjxfabio hjxfabio is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Actually I retrieve records from a table in a database (either MS Access or SQL Server), then I bind it to the dropdownlist. It took me around 5 to 10 seconds to load up the entire page, including the initial list.

Some other issues? Please advice. I am pretty poor in ASP.net and its behaviour. Thanks a lot.
Reply With Quote
  #6 (permalink)  
Old 12-04-03, 21:39
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
How many concurrent users will you have on this web server ?
Reply With Quote
  #7 (permalink)  
Old 12-04-03, 22:20
hjxfabio hjxfabio is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
mmm... There could be as many as 10 to 15 users logging in at one time..
Reply With Quote
  #8 (permalink)  
Old 12-04-03, 22:35
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Have you tried enabling trace functionality for this page and watch the performance/viewstate information ?
Reply With Quote
  #9 (permalink)  
Old 12-04-03, 22:36
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
I am curious to see the results of the trace when are able to submit the page a few time before it fails.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On