crazyboybert
Programmer
Hi All
I have a class which implements ISerializable and has the appropriate constructor and overridden GetObjectData methods.
I want to serialize an instance of this class and add it to the pages viewstate. I can successfully serialize the object and add it to a FileStream using a BinaryFormatter but am struggling getting it into ViewState and can't find much out there on this subject. Seems a fairly simple requirement and I think there must be an easy way to do this I'm missing.
Any ideas?
Cheers, Rob.
Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
I have a class which implements ISerializable and has the appropriate constructor and overridden GetObjectData methods.
I want to serialize an instance of this class and add it to the pages viewstate. I can successfully serialize the object and add it to a FileStream using a BinaryFormatter but am struggling getting it into ViewState and can't find much out there on this subject. Seems a fairly simple requirement and I think there must be an easy way to do this I'm missing.
Any ideas?
Cheers, Rob.
Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927