Web custom controls issue

Discussion in 'ASP .Net Web Controls' started by Emanuele, Feb 1, 2007.

  1. Emanuele

    Emanuele Guest

    Hi all,
    i am developing a web custom control. Basically it's something like a
    listbox, a bit enhanced. i have some problem when i have to add items to the
    controls. this is the basic structure of the control:

    CREATECHILDCONTROLS (method)
    create the child controls of the component.
    add the items inserted (if i don't add them here, i can't handle item
    events)

    RENDERCONTENTS
    render the control and each item i have inserted.

    ---- IMPLEMENTATION IN A WEBFORM ---

    the control is added in a Webform, and from a dorpdownlist the user can
    choose which "set" of items explore. obviously, in the SELECTEDINDEXCHANGED
    event of the dropdownlist i populate the custom control, but i can't see
    anything.

    i have found the problem: the items contained are not rendered because the
    CREATECHILDCONTROLS is called before the SELECTEDINDEXCHANGED, thus i don't
    have items added and created in the controls collection of the custom
    control...

    can anyone help me, please? i really don't know how to manage it...
     
    Emanuele, Feb 1, 2007
    #1
    1. Advertising

  2. On Feb 1, 3:46 pm, Emanuele <>
    wrote:
    > Hi all,
    > i am developing a web custom control. Basically it's something like a


    Might be off topic, but you do realize that there's commercial and
    open source solutions available for mostly everything you
    could possibly imagine in a "drop down list"...??
    Oe of them is http://ajaxwidgets.com which has an AutoCompleter
    control, fully ajax enabled...

    ..t

    --
    http://ajaxwidgets.com
    Free ASP.NET Ajax Widgets NOW!
     
    Thomas Hansen, Feb 2, 2007
    #2
    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. Axel Dahmen
    Replies:
    1
    Views:
    542
    Teemu Keiski
    Nov 12, 2003
  2. Nathan Sokalski
    Replies:
    5
    Views:
    1,078
    Gaurav Vaish \(www.Edujini-Labs.com\)
    Jan 10, 2007
  3. rodchar
    Replies:
    0
    Views:
    409
    rodchar
    Nov 26, 2007
  4. Andrei Sinelnikov

    Web Custom/Composite controls default property render issue.

    Andrei Sinelnikov, May 7, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    205
    Andrei Sinelnikov
    May 10, 2004
  5. Nathan Sokalski
    Replies:
    4
    Views:
    337
    Nathan Sokalski
    Dec 21, 2006
Loading...

Share This Page