Home All Groups Group Topic Archive Search About

Viewing Composite Controls at Design Time

Author
20 Dec 2005 3:14 PM
Jeffrey Jones
Hello All,

I have created a composite control consisting of a checkbox, label,
htmlfileinput, button and hyperlink controls. I have compiled my control
and, after doing that, created a project so that I could attempt to see
how my control operates.

In the designer for my asp.net project, I get an error creating control
"box" where my composite control should be. What could be causing this?

I have recently uninstalled and reinstalled VS.NET 2003, IIS and the
dotnet framework 1.1.

Thank you in advance,
Jeff Jones

Author
20 Dec 2005 5:59 PM
addup
If you mean a webcontrol (i.e. derived from WebControl) You are in for
a whole new world of fun

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconenhancingdesign-timesupport.asp

If you mean a Web user controls ( with an .ascx file) then I'm not sure
if it *can* be accessed from outside the project where you made it.
Copy the ascx into the second project

There's some good info in
http://msdn.microsoft.com/library/en-us/dnpag/html/DIforWC-CH03.asp


Hope this helps
-- addup --
Author
21 Dec 2005 4:37 AM
dbottjer
Pay close attention to your namespace.  Make sure you are referencing your
control properly.  Double check your assembly and class names.

Show quoteHide quote
"Jeffrey Jones" wrote:

> Hello All,
>
> I have created a composite control consisting of a checkbox, label,
> htmlfileinput, button and hyperlink controls. I have compiled my control
> and, after doing that, created a project so that I could attempt to see
> how my control operates.
>
> In the designer for my asp.net project, I get an error creating control
> "box" where my composite control should be. What could be causing this?
>
> I have recently uninstalled and reinstalled VS.NET 2003, IIS and the
> dotnet framework 1.1.
>
> Thank you in advance,
> Jeff Jones
>