Yussi Ariefiyono
find value in repeater asp net
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
}
}
| Print article | This entry was posted by yussi ariefiyono on May 4, 2009 at 5:18 pm, and is filed under asp.net. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |