Last post May 12, 2008 03:32 PM by jhallyburton
May 09, 2008 03:12 PM|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 04:02 PM|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 03:32 PM|jhallyburton|LINK
Thank-you, that worked.