M
MattC
I have a custom control, that I add via the HTML view of my aspx page. I
then also manually added a datagrid as a child control.
<mycontrol:tagname runat=server id=foo>
<asp:datagrid runat=server id=foobar></asp:datagrid>
</mycontrol:tagname>
When I switch to design mode and edit the control foo's properties and then
switch back to html view the datagrid is gone.
Also the dataggrid does not show up in design view.
Here is my controls render section:
protected override void RenderChildren(HtmlTextWriter writer)
{
WritePanelTop(writer); //writes out table beginning
base.RenderChildren(writer); //should write out the datagrid via its
render method
WritePanelBottom(writer); //writes out tables end
}
Help?!?!
MattC
then also manually added a datagrid as a child control.
<mycontrol:tagname runat=server id=foo>
<asp:datagrid runat=server id=foobar></asp:datagrid>
</mycontrol:tagname>
When I switch to design mode and edit the control foo's properties and then
switch back to html view the datagrid is gone.
Also the dataggrid does not show up in design view.
Here is my controls render section:
protected override void RenderChildren(HtmlTextWriter writer)
{
WritePanelTop(writer); //writes out table beginning
base.RenderChildren(writer); //should write out the datagrid via its
render method
WritePanelBottom(writer); //writes out tables end
}
Help?!?!
MattC