how to reach programmatically a fieldl in a datalist?

D

David

Hi,

i made a datalist with records containing several fields.
I need to reach one particular field in code-behind.
I don't know which event to choose. I tried with several events but but it
all failed:

Protected Sub DataList1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataListItemEventArgs) Handles
DataList1.ItemDataBound
e.Items.Controls(...)

Protected Sub DataList1_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataListItemEventArgs) Handles
DataList1.ItemCreated
e. ...

Protected Sub DataList1_DataBinding(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataList1.DataBinding
...

Thanks
David
 

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,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top