J
Jason
I have built a custom control that has, as one of its properties, a
collection of another custom control. So controlA has property of type
controlBCollection. At design time it looks like:
<asp:controlA runat="server">
<asp:controlB commandName="Save"
commandArg="<%#DataBinder.Eval(Container, "DataItem.pkID")%>" />
</asp:controlA>
In a DataGrid i have a TemplateColumn with the above as the ItemTemplate
After binding there is nothing for the commandName or commandArg properties.
string.empty is the value for these properties.
if i bind the same thing directly to controlA, say...ToolTip, the values
show up.
Somehow the values from the datasource are not getting down to the
subproperties.
Any help would be greatly appreciated. Let me know if you need clarification
or even the source code and i'll be happy to provide.
collection of another custom control. So controlA has property of type
controlBCollection. At design time it looks like:
<asp:controlA runat="server">
<asp:controlB commandName="Save"
commandArg="<%#DataBinder.Eval(Container, "DataItem.pkID")%>" />
</asp:controlA>
In a DataGrid i have a TemplateColumn with the above as the ItemTemplate
After binding there is nothing for the commandName or commandArg properties.
string.empty is the value for these properties.
if i bind the same thing directly to controlA, say...ToolTip, the values
show up.
Somehow the values from the datasource are not getting down to the
subproperties.
Any help would be greatly appreciated. Let me know if you need clarification
or even the source code and i'll be happy to provide.