Hi,
I have placed a label in footer template of DataList Control.. And i want to access it a DataLists UpdateCommand..
if (e.Item.ItemType == ListItemType.Footer) { lbl = (Label)e.Item.FindControl("lblmessage"); }
But it did not work
This way
foreach ( DataListItem item in datalist1.Items ) { if ( item.ItemType == ListItemType.Footer ) { Label lbl = (Label)item.FindControl("Label1"); } }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.