cool_man77
08-22-2004, 09:51 AM
I have put the label control(myLabel) in the list control(myRepeter)
<asp:Repeater id="myRepeter" runat="server">
<ItemTemplate>
<asp:label id="myLabel" runat="server"/><%# Container.DataItem("Item") %>
</ItemTemplate>
</asp:Repeater>
I want to access to "myLabel" properties like: Text, BackColor.. in Page_Load sub. I had use:
Sub Page_Load(s as Object, e as EventArgs)
myLabel.Text = "Hello"
End Sub
But I receive error "Name 'myLabel' is not declared."
Can anyone help me to solve this problem, please?
Thanks!
<asp:Repeater id="myRepeter" runat="server">
<ItemTemplate>
<asp:label id="myLabel" runat="server"/><%# Container.DataItem("Item") %>
</ItemTemplate>
</asp:Repeater>
I want to access to "myLabel" properties like: Text, BackColor.. in Page_Load sub. I had use:
Sub Page_Load(s as Object, e as EventArgs)
myLabel.Text = "Hello"
End Sub
But I receive error "Name 'myLabel' is not declared."
Can anyone help me to solve this problem, please?
Thanks!