I am designing a UserControl and I'd like to customize the design time appereance of the UserControl, ie, how it renders when dropped onto a page in Visual Studio.
How can the design time appeareance of a class inheirting from System.Web.UI.UserControl be modified?
I've tried overriding the Render and RenderControl methods, but this has not impacted how the control renders during design time, only how it renders when viewed within the browser. Additionally, I've tried decorating the class using the System.ComponentModel.Desi
gner attribute, but this did not work either.
In the code attachments I've mocked up what I would expect the code to look like to further emphasize what I'm trying to do.
Any help would be greatly appreciated.
public partial class MyUserControl : System.Web.UI.UserControl
protected override void RenderControl(HtmlTextWriter writer)
writer.Write("Hello World!!! - Design Time");
writer.Write("Hello World!!! - Run Time");