Posts tagged c#
find value in repeater asp net
May 4th
Problem:
find value in repeater
Solution:
write this code in itemdatabound on your repeater:
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Label title = e.Item.FindControl("Label1") as Label; // depend on what component you r searching for
Response.Write(title.Text); // just check
}
}