Thursday, February 26, 2009

Remember to Serialize objects when saving to web part properties

Remember to set the [Serializable] attribute to the web part property you are using to save your data when saving objects, e.g. saving objects to an arraylist web part property.

Strings do not require the [Serializable] attribute to be specified.

No comments: