Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / April 2006

Tip: Looking for answers? Try searching our database.

CompositeControl and Toolbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CMM - 18 Apr 2006 23:24 GMT
This has been asked repeatedly many times and no one has been able to answer
it. Now, I have the problem too..... why are  CompositeControls so hard to
make show up in the Toolbox? Why do they show up sometimes and then
disappear? What's magic combination of tricks need to happen in order for
this to work.

Why is this so hard? Was this tested? Who is in charge of this "feature" in
ASP.NET?

No, there is nothing wrong with the control. The attribitutes
ToolboxItemAttribute and ToolboxData have been added. The control compiles
with no errors. It can be used in pages by (handtyping the tags).

Also, the bigger question.... why is the Designer in ASP.NET so inept? So
featureless? So crappy? And so stupid? Whose idea was it to spend time on
(the rather useless and featureless) Master Pages feature instead of making
Custom Controls truly a worthwhile enterprise.... like an easy to create
UserControl that can act as a Panel (wouldn't that render MasterPages
obsolete?)

- Frustrated in New York,
C. Moya
www.cmoya.com
CMM - 19 Apr 2006 04:19 GMT
The solution is to remove the control project from your web solution and
simply add a reference to the built dll manually to the toolbox. VS/ASP.NET
is too stupid to pick up the controls when the project is part of the
solution..... it does try... but, whoever coded this "feature" is braindead.

This makes debugging the controls a little tedious... but at least it works.

Signature

-C. Moya
www.cmoya.com

> This has been asked repeatedly many times and no one has been able to
> answer it. Now, I have the problem too..... why are  CompositeControls so
[quoted text clipped - 19 lines]
> C. Moya
> www.cmoya.com
Alessandro Zifiglio - 19 Apr 2006 08:27 GMT
hi, if it happens again instead of removing the control project from your
web solution , choose Clean myCustomCompositeControlProject from the build
menu in VS.NET to delete any intermediate and output files, leaving only the
project and component files, from which new instances of the intermediate
and output files can then be built and after this step, from the build menu
choose Build myCustomCompositeControlProject. Now going into your webproject
in designview you will see your component in the toolbox =P

Good day,
Alessandro Zifiglio
> The solution is to remove the control project from your web solution and
> simply add a reference to the built dll manually to the toolbox.
[quoted text clipped - 29 lines]
>> C. Moya
>> www.cmoya.com
CMM - 19 Apr 2006 22:32 GMT
No, it still picks and chooses which items to display. Ignoring
CompositeControls and showing derived controls.

Removing the project and simply referencing the DLL works as it should.

Yes, this is a stupid bug.

Signature

-C. Moya
www.cmoya.com

> hi, if it happens again instead of removing the control project from your
> web solution , choose Clean myCustomCompositeControlProject from the build
[quoted text clipped - 40 lines]
>>> C. Moya
>>> www.cmoya.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.