Below is the code for finding table row id inside a datalist control:
protected void datalistData_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Header)
{
HtmlControl trTableRow = e.Item.FindControl("trOffline") as HtmlControl;
//where trOffline is row id
}
}
protected void datalistData_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Header)
{
HtmlControl trTableRow = e.Item.FindControl("trOffline") as HtmlControl;
//where trOffline is row id
}
}
No comments:
Post a Comment