Last post May 12, 2008 10:32 AM by jhallyburton
May 09, 2008 10:12 AM|jhallyburton|LINK
I have created a custom control and added a property of type panel to it. In the designer this property shows up as a drop down list with all the panels in the page. When I select a panel, the control disappears with a render error stating that it cannot
create object of type panel from its string representation. I can however set the property from code behind by giving the property a reference to the panel, but not from designer.
May 09, 2008 11:02 AM|nmgomes|LINK
You must create a TypeConverter that can convert a string containing a control ID to the corresponding Panel instance.
Then you must register this TypeConverter to your property of type Panel.
May 12, 2008 10:32 AM|jhallyburton|LINK
Thank-you, that worked.