I want to find \"Label\" control with ID = \"Label\" inside the \"ListView\" control. I was trying to do this with the following code:
((Label)this.ChatListV
One simple solution to this problem, which avoids the FindControl code is to place OnInit on your label.
This would change your page code to this:
And in your code behind you will now have a function like this:
protected void Label_Init(object sender, EventArgs e)
{
Label lblMyLabel = (Label)sender;
lblMyLabel.Text = "My Text";
}