M
Mark Olbert
I'm having trouble with a custom webcontrol I've written. It successfully persists information about
a control property to some inner property tags, but when the aspx file is parsed to create the
control, an exception is thrown from deep in the bowels of the Framework.
The exception states that a System.Object cannot be created from the string represenation of an
attribute of the inner property tag. Here's what that tag looks like:
<DaysSelected DataSource="a" DataMember="b" DataField="c" />
DaysSelected is a property of the webcontrol (it's of type DataInterface, a custom class I wrote).
Is anyone familiar with how these types of tags get used to create objects?
Also, why would the Framework even try to create a DataInterface object based on a single attribute?
I should think it would create a new instance of DataInterface, and then use the attributes to
assign values to the DataInterface properties.
- Mark
a control property to some inner property tags, but when the aspx file is parsed to create the
control, an exception is thrown from deep in the bowels of the Framework.
The exception states that a System.Object cannot be created from the string represenation of an
attribute of the inner property tag. Here's what that tag looks like:
<DaysSelected DataSource="a" DataMember="b" DataField="c" />
DaysSelected is a property of the webcontrol (it's of type DataInterface, a custom class I wrote).
Is anyone familiar with how these types of tags get used to create objects?
Also, why would the Framework even try to create a DataInterface object based on a single attribute?
I should think it would create a new instance of DataInterface, and then use the attributes to
assign values to the DataInterface properties.
- Mark