How Are Objects Created from Inner Properties?

  • Thread starter Thread starter Mark Olbert
  • Start date Start date
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
 
Hi,

Thank you for posting to the Microsoft newsgroups. I am looking for a
resource to help with your issue. We will post a reply as soon as we can.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.
 
Back
Top