Label lbl = dgi.FindControl("LBL_MyLabel") as Label;
This works most of the time, but sometimes lbl is null after FindControl was called. I am wondering how this could happen. It should either be there or not? Any ideas?
The label is defined like this:
<asp:Label ID="LBL_MyLabel" runat="server"></asp:Label>
Thanks :-)