How to access this ASP:Label?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,592
Members
45,103
Latest member
VinaykumarnNevatia
Top