ObjectList ItemDataBound event

Discussion in 'ASP .Net Mobile' started by Theresa Smallwood, Feb 20, 2004.

  1. I have an ObjectList with an ItemTemplate with two controls in it, both
    Labels, called lblID and lblDesc. I am trying to set the Text in these
    labels on the ItemDataBound event to be values from the data bound to the
    control. The problem I am having is "finding" the controls to set. (I am
    attempting to do this similar to how I might do it in a DataGrid.)
    e.ListItem.Controls.Count always seems to be 0 (zero). Am I doing something
    wrong here? e.ListItem is not "nothing" (I'm writing this app in VB.Net), so
    that's not it.

    Any help would be appreciated!

    Theresa
    Theresa Smallwood, Feb 20, 2004
    #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. Tina
    Replies:
    1
    Views:
    368
    Suresh
    Oct 14, 2003
  2. GaryDean
    Replies:
    1
    Views:
    8,673
    Walter Wang [MSFT]
    Aug 18, 2006
  3. NH
    Replies:
    2
    Views:
    513
    Andrew L. Van Slaars
    Dec 17, 2004
  4. Alain

    override objectlist back event

    Alain, Feb 23, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    133
    Alain
    Feb 23, 2005
  5. JJ

    ObjectList and ItemSelect event

    JJ, Jul 26, 2006, in forum: ASP .Net Mobile
    Replies:
    1
    Views:
    745
    Taoge
    Jul 27, 2006
Loading...

Share This Page