CompositeControl and Toolbox

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default CompositeControl and Toolbox

    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
    [url]www.cmoya.com[/url]


    CMM Guest

  2. Similar Questions and Discussions

    1. CompositeControl & CompositeDataBoundControl question
      Hi I want to create an n-tier custom server control. The idea is that the control will determine which "view" will be used. By this I mean...
    2. Custom Templated CompositeControl/CompositeControlDesigner
      Hi, Myself and a colleague are attempting to mimic the custom template functionality of the ASP.Net 2 Login control. Essentially, we would like...
    3. CompositeControl and ViewState
      I'm trying to create a CompositeControl derived class to implement a control that will enable people to edit an account object. The properties of an...
    4. The toolbox
      The toolbox has disappeared from my Photoshop home page. The Window menu does not have a choice of "Hide tools" or "Show tools" as stated on page 16...
    5. Toolbox (asp.net)
      What Exactly do u want to see ... -- Regards Khan Imran "Leon Shaw" <vnality@msn.com> wrote in message...
  3. #2

    Default Re: CompositeControl and Toolbox

    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.

    --
    -C. Moya
    [url]www.cmoya.com[/url]

    "CMM" <cmm@nospam.com> wrote in message
    news:OMo%23jbzYGHA.3448@TK2MSFTNGP04.phx.gbl...
    > 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
    > [url]www.cmoya.com[/url]
    >

    CMM Guest

  4. #3

    Default Re: CompositeControl and Toolbox

    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
    "CMM" <cmm@nospam.com> ha scritto nel messaggio
    news:u0JMYA2YGHA.3704@TK2MSFTNGP03.phx.gbl...
    > 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.
    >
    > --
    > -C. Moya
    > [url]www.cmoya.com[/url]
    >
    > "CMM" <cmm@nospam.com> wrote in message
    > news:OMo%23jbzYGHA.3448@TK2MSFTNGP04.phx.gbl...
    >> 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
    >> [url]www.cmoya.com[/url]
    >>
    >
    >

    Alessandro Zifiglio Guest

  5. #4

    Default Re: CompositeControl and Toolbox

    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.

    --
    -C. Moya
    [url]www.cmoya.com[/url]
    "Alessandro Zifiglio" <AlessandroZifiglio @ -h-o-t-m-a-i-l-c-o-m> wrote in
    message news:eFgu%23K4YGHA.3400@TK2MSFTNGP02.phx.gbl...
    > 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
    > "CMM" <cmm@nospam.com> ha scritto nel messaggio
    > news:u0JMYA2YGHA.3704@TK2MSFTNGP03.phx.gbl...
    >> 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.
    >>
    >> --
    >> -C. Moya
    >> [url]www.cmoya.com[/url]
    >>
    >> "CMM" <cmm@nospam.com> wrote in message
    >> news:OMo%23jbzYGHA.3448@TK2MSFTNGP04.phx.gbl...
    >>> 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
    >>> [url]www.cmoya.com[/url]
    >>>
    >>
    >>
    >
    >

    CMM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139