foreach (DataListItem dli in DataList1.Items) { Label Label1 = dli.FindControl("Label1") as Label; string lblValue=Label1.Text; } //In Datalist events. Label Label1 = e.Item.FindControl("Label1") as Label; //can get the value in string lblValue. string lblValue=Label1.Text;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)