Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Property of abstract type doesn't deserialize properly

Reply
Thread Tools

Property of abstract type doesn't deserialize properly

 
 
Joel
Guest
Posts: n/a
 
      06-06-2006
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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Property of abstract type doesn't deserialize properly joelgerard@gmail.com ASP .Net Building Controls 0 06-06-2006 07:21 PM
About abstract class and abstract method Sameer Java 4 08-31-2005 12:59 AM
Deriving abstract class from non-abstract class Matthias Kaeppler Java 1 05-22-2005 01:28 PM
Abstract class with no abstract functions Uzytkownik C++ 3 04-03-2005 05:45 PM
Abstract Classes w/o abstract methods DaKoadMunky Java 4 04-20-2004 04:53 AM



Advertisments