Hi,
declare one string array like
String[] Names=new String[10];
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Label pris = (Label)e.Item.FindControl("GiveYourLableId");
Names.Add(pris.Text);
}
}
This method will fire for each item in your DataList.