mellenburg
Programmer
I have a repeater with the following code:
In the code-behind, I'm trying change the text property of lbl_puf_files_doc by looking at the controls within rpr_puf_files_doc. When I run the following code, I get a return of FALSE.
Why is .Net not finding the label control within the repeater. How can I access this control?
Code:
<asp:Repeater ID="rpr_puf_files_doc" runat="server" DataSourceID="ods_puf_files_doc">
<ItemTemplate>
<div class="puf_files_bottomleft">
<%#Eval("FileLabel")%>
</div>
<div class="puf_files_bottomright">
<asp:Label id="lbl_puf_files_doc" runat="server"></asp:Label>
</div>
</ItemTemplate>
</asp:Repeater>
In the code-behind, I'm trying change the text property of lbl_puf_files_doc by looking at the controls within rpr_puf_files_doc. When I run the following code, I get a return of FALSE.
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Trace.Warn(rpr_puf_files_doc.HasControls)
End Sub
Why is .Net not finding the label control within the repeater. How can I access this control?