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
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