HighTechTalks DotNet Forums  

Serialize web control

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Serialize web control in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ahab Guirguis
 
Posts: n/a

Default Serialize web control - 12-16-2003 , 01:30 PM






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




Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: Serialize web control - 12-17-2003 , 03:25 AM







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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.