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

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top