ObjectList ItemDataBound event

T

Theresa Smallwood

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top