I render some markup dynamically in a Web User Control, can I get that out in design mode, and not only runtime?
public override void RenderControl(HtmlTextWriter writer)
{
if (this.DesignMode)
writer.Write("<p>In design mode</p>");
else
base.RenderControl(writer);
}
... nothing happens when I check the design view of the control. Not if I remove the if (this.DesignMode)-condition either.
Will I need to use a Server Control?