You can access html labels from C# or divs for that matter too (HtmlGenericControl, or (HtmlGenericControl(“label”)) and type cast it to their respective types after calling findControl(). If you want to access it without the findcontrol and type cast, you need to have the ‘asp’ tag prefix like:
<asp:Label
and you need to include runat=”server” in the control attributes so that the code behind can access it directly. (and so it shows for you in intellisense)
3
solved How can I cast an ASP.NET Label?