Hi,

I try to serialize a control property (System.Web.UI.WebControls.Style) to
store it in my DB. But it can't be serialized. So a wonderfull idea would be
to create my own object with [Serializable] Attribute. This would work in
most cases but not in my case. I need to deserialize the object and set it
as a value on my webcontrol.

Example:
Serialize - System.Web.UI.WebControls.Style - and store it in DB
objValue = Deserialize - System.Web.UI.WebControls.Style - from DB

:code
TextBox txt = new TextBox();
System.Type typ = txt.GetType();
System.Reflection.PropertyInfo PropInfo = typ.GetProperty("Height");
PropInfo.SetValue(objCurrentControl, objValue,null);

The serialization of System.Web.UI.WebControls.Style will fail. If I create
my own class it will not be possible to use SetValue. Is this correct and is