J
James F. Kubecki
Hello,
I'm attempting to build a composite control which for
purposes of layout renders its content as an HTML table
row (<tr>). At runtime, it works just fine, but at
design time, the control doesn't render at all.
The following is a simplified example which will
illustrate this:
(CONTROL CLASS)
public class RowTypeControl : Control
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<tr><td>Foo</td><td>Bar</td></tr>");
}
}
(ASPX PAGE)
<table border=5>
<cc1:RowTypeControl id="RowTypeControl1"
runat="server"></cc1:RowTypeControl>
</table>
Again, at runtime, this renders perfectly, but at design
time, it doesn't show ANYTHING in the designer.
What am I missing?
JFK
I'm attempting to build a composite control which for
purposes of layout renders its content as an HTML table
row (<tr>). At runtime, it works just fine, but at
design time, the control doesn't render at all.
The following is a simplified example which will
illustrate this:
(CONTROL CLASS)
public class RowTypeControl : Control
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<tr><td>Foo</td><td>Bar</td></tr>");
}
}
(ASPX PAGE)
<table border=5>
<cc1:RowTypeControl id="RowTypeControl1"
runat="server"></cc1:RowTypeControl>
</table>
Again, at runtime, this renders perfectly, but at design
time, it doesn't show ANYTHING in the designer.
What am I missing?
JFK