V
Victor Irzak
Hello...
I the following class deriving from CollectionBase:
============================
public class YYYepC : System.Collections.CollectionBase
{
int i = 9;
[DefaultValue(4)]
[PersistenceMode(PersistenceMode.Attribute)]
public int I
{
get {return i;}
set {i=value;
}
}
}
============================
When I try to serialize it in my web control, the "I" property doesn't get
serialized. Only the sollection items get serialized.
Here is my control:
============================
public class WebChartingControl : System.Web.UI.WebControls.WebControl
{
YYYepC da2 = new YYYepC();
[PersistenceMode(PersistenceMode.InnerProperty)]
[NotifyParentProperty(true)]
public YYYepC YYYepC
{
get {return da2;}
set {da2 = value;}
}
}
============================
How can I serialize all the other properties?
Thanks,
Victor
I the following class deriving from CollectionBase:
============================
public class YYYepC : System.Collections.CollectionBase
{
int i = 9;
[DefaultValue(4)]
[PersistenceMode(PersistenceMode.Attribute)]
public int I
{
get {return i;}
set {i=value;
}
}
}
============================
When I try to serialize it in my web control, the "I" property doesn't get
serialized. Only the sollection items get serialized.
Here is my control:
============================
public class WebChartingControl : System.Web.UI.WebControls.WebControl
{
YYYepC da2 = new YYYepC();
[PersistenceMode(PersistenceMode.InnerProperty)]
[NotifyParentProperty(true)]
public YYYepC YYYepC
{
get {return da2;}
set {da2 = value;}
}
}
============================
How can I serialize all the other properties?
Thanks,
Victor