Last post Aug 26, 2010 03:20 AM by Qin Dian Tang - MSFT
Aug 23, 2010 04:58 PM|patrickcosyns|LINK
I have a composite control (Called Dialog) which has a property "ContentControl"
At design time, I'd like this property to bind to a user control that is on the page.
When I add the items in the designer, the designer loads as expected.
However, when I try to run the web page, I get the following error:
Parser Error Message:
Cannot create an object of type 'System.Web.UI.UserControl' from its string representation 'EditTerm1' for the 'ContentControl' property.
Please let me know if there is another way to bind a user control as a property of a composite control.
<cc1:Dialog ID="Dialog1" runat="server" Buttons="SaveCancel" Title="Edit Term" ContentControl="EditTerm1" /> <uc1:EditTerm ID="EditTerm1" runat="server" />
Aug 26, 2010 03:20 AM|Qin Dian Tang - MSFT|LINK
Not familiar with this issue. Here are some posts about this kind of error. Hope it helps: