R
Rowland Shaw
All the documentation I've found suggects that all you need to support on
your object to stick it in the ViewState on a control is the IStateManager
interface.
However, with the IStateManager interface implemented (in my example on
ComplexObject), I get the infamous error:
[HttpException (0x80004005): The type 'MyCompany.MyProject.ComplexObject'
must be marked as Serializable or have a TypeConverter other than
ReferenceConverter to be put in viewstate.]
There's been a lot of head scratching, and a lot of flicking through pages
245 to 255 of MS Press' "Developing Asp.Net Server Controls and Components";
but I'm still no wiser -- am I missing something blindingly obvious or is
there really an amount of black magic required? (I suspect the former)
your object to stick it in the ViewState on a control is the IStateManager
interface.
However, with the IStateManager interface implemented (in my example on
ComplexObject), I get the infamous error:
[HttpException (0x80004005): The type 'MyCompany.MyProject.ComplexObject'
must be marked as Serializable or have a TypeConverter other than
ReferenceConverter to be put in viewstate.]
There's been a lot of head scratching, and a lot of flicking through pages
245 to 255 of MS Press' "Developing Asp.Net Server Controls and Components";
but I'm still no wiser -- am I missing something blindingly obvious or is
there really an amount of black magic required? (I suspect the former)