HighTechTalks DotNet Forums  

Property of abstract type doesn't deserialize properly

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


Discuss Property of abstract type doesn't deserialize properly in the ASP.net Building Controls forum.



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

Default Property of abstract type doesn't deserialize properly - 06-06-2006 , 03:21 PM






Does anybody know how the ASP.NET designer serializes/deserializes
properties of abstract type? I have a property of type Editor.
TextEditor and ImageEditor are derived from Editor which is abstract.
On my control, I have a property that is of type Editor.
public Editor Editor
{}

When it serializes it to the design time HTML it does so like this:

<DateColumn Hidden="False" Enabled="False">
<Editor DatasourceId="dadasdfsf"></Editor>
</DateColumn>

However, it doesn't save any type information. When I try open the form
again in the design view it tries to create an Editor object and
obviously fails since Editor is abstract.

How do I hook the CreateInstance for this? I've tried TypeConverters
but it wont call my CreateInstance method.

Any ideas would be appreciated. I'm losing it on this one.

Thanks,
Joel


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 - 2009, Jelsoft Enterprises Ltd.