Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2003
    Posts
    4

    Unanswered: 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.

  2. #2
    Join Date
    Feb 2002
    Posts
    2,232
    How large is the list ?

  3. #3
    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.

  4. #4
    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...

  5. #5
    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.

  6. #6
    Join Date
    Feb 2002
    Posts
    2,232
    How many concurrent users will you have on this web server ?

  7. #7
    Join Date
    Dec 2003
    Posts
    4
    mmm... There could be as many as 10 to 15 users logging in at one time..

  8. #8
    Join Date
    Feb 2002
    Posts
    2,232
    Have you tried enabling trace functionality for this page and watch the performance/viewstate information ?

  9. #9
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •