Welcome! and rules
Joel on Software
Hello, I have an abstract control (CustomUserControl) that inherits System.Web.UI.UserControl so when I am creating a new user control I inherit CustomUserControl instead of UserControl. The problem is that I can't view any controls derived from CustomUserControl in design mode. I just get an "Object reference not set to an instance of an object" error. These ontrols work fine when the page is rendered though. Has anyone else had this problem?
I don't think its a problem, I guess its by design. In design mode of the IDE the object references are not instantiated and the control is not active.
Is your CustomUserControl defined in a separate assembly outside of the asp.net web application project? If not it will not render in the IDE.
You can't add user controls to the toolbox in VS.NET. User controls don't have much in the way of design time support, unfortunately.
User controls are actually pretty poor feature-wise. Why not just make a custom control and be done with it? :)
Brad Wilson (dotnetguy.techieswithcats.com)
To Everyone - thanks for the comments and help.
I found out why my custom control was not rendering at design time! In the constructor of the custom control I was getting a value from web.config using the Configuration.Appsettings() method. Apparently the designer did not like this because when I removed it everything was good.
Fog Creek Home