Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Custom ASP.NET Control - Design-time rendering

Avatar of ozymandias
ozymandiasFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET Programming
3 Comments1 Solution766 ViewsLast Modified:
I have created a custom asp.net web control.

I have done this by extending System.Web.UI.WebControls.Panel like this :

      [DefaultProperty("Text"), ToolboxData("<{0}:WebCustomControl1 runat=server></{0}:WebCustomControl1>")]
      public class WebCustomControl1 : System.Web.UI.WebControls.Panel{

Internally I have added some labels, buttons and textboxes to the panel, exposed some bindable attributes and events etc.
I have added it to my toolbox and can drag and drop it onto the form.
It all works fine and renders beautifully on the web page.
However, in the VS2003 designer it only renders the outer panel and not the inner controls.
How can I get it to look like it does at runtime in design time ?
Avatar of CetusMOD
CetusMODFlag of Netherlands image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers