Composite dropdownlist control that also displays a listbox????

Discussion in 'ASP .Net Building Controls' started by Peter S., Nov 21, 2005.

  1. Peter S.

    Peter S. Guest

    This is driving me crazy, I am trying to build a custom dropdownlist that when
    rendered also displays a listbox next to it. I am going to use the listbox as
    a repository for items that are selected when accessing the dropdown. I did
    override CreateControlCollection() and returned "new
    ControlCollection(this);". However when I add controls (by overriding
    CreateChildControls()) I do not see them on the webpage. Is there any other
    magic that needs to be done? I have created other custom controls without a
    problem.
    BTW, I want to keep dropdownlist as the base class because my page has
    a number of these controls and I want to be able to configure the list via the
    aspx page rather than programatically. Any information would be greatly
    appreciated!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Thanks,
    Peter
     
    Peter S., Nov 21, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sleigh
    Replies:
    1
    Views:
    2,738
    sleigh
    Feb 12, 2004
  2. Chumley Walrus
    Replies:
    1
    Views:
    12,235
    =?Utf-8?B?QnJpYW4gQnJvd24=?=
    Dec 16, 2004
  3. Chad
    Replies:
    0
    Views:
    254
  4. Peter S.

    Custom dropdownlist that displays a listbox

    Peter S., Nov 21, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    126
    Peter S.
    Nov 21, 2005
  5. DOK
    Replies:
    1
    Views:
    226
    Henrik Stidsen
    Mar 6, 2007
Loading...

Share This Page