A
Angel
I built a webcontrol and within the control I build a collection of properties I would Like to store so I do not have to rebuild it everytime there is a postback. I store the collection in viewstate and get the following error when I run a page with my control on it:
The Type 'myCollection' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.
I store all my other custom properties in viewstate, but accessing myCollection from the viewstate becomes an error. I know that myCollection is not a basic type, while the other properties are, but is there a way to save the collection without having to rebuild it everytime there is a postback?
Thanks...
The Type 'myCollection' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.
I store all my other custom properties in viewstate, but accessing myCollection from the viewstate becomes an error. I know that myCollection is not a basic type, while the other properties are, but is there a way to save the collection without having to rebuild it everytime there is a postback?
Thanks...