Webcontrol nulls values?

Discussion in 'ASP .Net Building Controls' started by DrBytes, Mar 13, 2006.

  1. DrBytes

    DrBytes Guest

    Guys,

    I have a problem.
    I have an ASCX I created with listbox on it. this ascx also exposes a
    SortedList property called Values.
    THis property is read on CreateChildControls in the ascx and populates the
    listbox with it.
    I set the the Values property of the ascx in the OnLoad of the hosting page.
    But by the time the CreateChildControls fires in the ascx the Values
    property is NULL again,.. What am I missing ?

    Thanks in advance
    DrBytes, Mar 13, 2006
    #1
    1. Advertising

  2. DrBytes

    Teemu Keiski Guest

    Hi,

    post some code.

    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    http://blogs.aspadvice.com/joteke

    "DrBytes" <> wrote in message
    news:...
    > Guys,
    >
    > I have a problem.
    > I have an ASCX I created with listbox on it. this ascx also exposes a
    > SortedList property called Values.
    > THis property is read on CreateChildControls in the ascx and populates the
    > listbox with it.
    > I set the the Values property of the ascx in the OnLoad of the hosting
    > page.
    > But by the time the CreateChildControls fires in the ascx the Values
    > property is NULL again,.. What am I missing ?
    >
    > Thanks in advance
    Teemu Keiski, Mar 18, 2006
    #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. Guest
    Replies:
    2
    Views:
    723
  2. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    182
    Luis Ramírez
    Jul 6, 2004
  3. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    174
    Kasabaarde Sumta
    Dec 13, 2004
  4. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    167
    Fabricio
    Sep 21, 2005
  5. Peter Morris [Air Software Ltd]

    WebControl with non-WebControl property

    Peter Morris [Air Software Ltd], Dec 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    126
    Peter Morris [Air Software Ltd]
    Dec 7, 2004
Loading...

Share This Page