Hi,
if (e.Item.ItemType == ListItemType.Footer)
{
lbl = (Label)e.Item.FindControl("lblmessage");
}
This code seems to be OK. Can you please let us know what is the error you are getting or you are informing us the code to be used.
If yes then please post the same code.