I
igitur
Hi all,
I have a custom collection derived from
System.Collections.Specialized.NameObjectCollectionBase.
NameObjectCollectionBase already implements ISerializable, so it
should be easy to store in the ViewState, right?
I'm, however, unable to do so. I can add the collection object
successfully, but with the page reload, it tells me the ViewState is
corrupted.
It's the infamous "The viewstate is invalid for this page and might be
corrupted" message.
I've confirmed with a viewstate decoder that the viewstate is indeed
corrupt, but I have no idea why.
Please have a look at
http://www.sun.ac.za/sms/CustomCollectionInViewState.zip
It's a replication of my problem.
I'm running VS.NET 2003.
thnx!
Francois Botha
I have a custom collection derived from
System.Collections.Specialized.NameObjectCollectionBase.
NameObjectCollectionBase already implements ISerializable, so it
should be easy to store in the ViewState, right?
I'm, however, unable to do so. I can add the collection object
successfully, but with the page reload, it tells me the ViewState is
corrupted.
It's the infamous "The viewstate is invalid for this page and might be
corrupted" message.
I've confirmed with a viewstate decoder that the viewstate is indeed
corrupt, but I have no idea why.
Please have a look at
http://www.sun.ac.za/sms/CustomCollectionInViewState.zip
It's a replication of my problem.
I'm running VS.NET 2003.
thnx!
Francois Botha