That question is too vague in what sort of answer you are looking for. Currently, you have to express your needs and expectations before a definite answer can be given.
And to add, you need to define what you mean by serialization. If you mean straight serializing like objects can be serialized to XML with XmlSerializer, I'd say that not straight because there are lots of stuff tied to the userControl class which isn't necessarily
serializable as such or as you expect because a) it does not have Serializable attribute applied b) it does not implement ISerializable interface c) It does not have a TypeConverter applied (related to ViewState persistence/serialization though) It does have
DesignerSerializer attribute applied, but that is tied to the design-time implementation and has nothing to do with runtime serialization. But as Justin said, you need to tell us more.
Thanks guys. I solved the problem by having a class inside the user control and serialize that class instead. That solves the problem and is probably a better way to do it. /Jimmy
Antropoid
Member
70 Points
15 Posts
Serialize a user control?
Aug 06, 2004 07:43 AM|LINK
master4eva
Star
13635 Points
2719 Posts
Re: Serialize a user control?
Aug 06, 2004 01:21 PM|LINK
joteke
All-Star
46224 Points
6896 Posts
ASPInsiders
MVP
Re: Serialize a user control?
Aug 08, 2004 07:41 AM|LINK
Teemu Keiski
Finland, EU
Antropoid
Member
70 Points
15 Posts
Re: Serialize a user control?
Aug 08, 2004 08:35 PM|LINK