S
Shapper
Hello,
I have an Asp:Label inside the HeaderTemplate of an ASP:Repeater:
<asp:Repeater id="myRepeater" runat="server">
<HeaderTemplate>
<asp:Label id="title" runat="server"></asp:Label>
...
In my VB code I have:
Protected WithEvents title As System.Web.UI.WebControls.Label
....
Sub Page_Load()
title.Text = "Title"
End Sub
It's not working. If I move the label to outside of the Repeater
everything works fine.
How can I solve this?
Thanks,
Miguel
I have an Asp:Label inside the HeaderTemplate of an ASP:Repeater:
<asp:Repeater id="myRepeater" runat="server">
<HeaderTemplate>
<asp:Label id="title" runat="server"></asp:Label>
...
In my VB code I have:
Protected WithEvents title As System.Web.UI.WebControls.Label
....
Sub Page_Load()
title.Text = "Title"
End Sub
It's not working. If I move the label to outside of the Repeater
everything works fine.
How can I solve this?
Thanks,
Miguel