Serialize web control

A

Ahab Guirguis

Can a custom web component be serialized? And how can the component be
serialized to xml?
 
J

Jeffrey Tan[MSFT]

Hi

Based on my understanding, you want to serialize the properties of your
custom control.
Normally, custom control is also a class, so you can just do like normal
serialization. Your custom control should implement the ISerializable
interface.
To serialize to xml or binary, this is determined by the Formatter ,
BinaryFormatter for binary serialization, SoapFormatter for xml
serialization.

For more information about serialization, please refer to Jeffrey Richter's
article:
http://msdn.microsoft.com/msdnmag/issues/02/04/net/
http://msdn.microsoft.com/msdnmag/issues/02/07/net/
http://msdn.microsoft.com/msdnmag/issues/02/09/net/

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top