Ai3xSKC
June 14th, 2002, 10:28 AM
Hey guys,
I was wondering how you would access the text of a label which is contained within an asp reapeater....
for example,...
<asp:repeater id="level1" runat="server" datasource="....">
<asp:repeater id="level2" runat="server" datasource="...">
<asp:label id="lblText" runat="server">Text</asp:label>
</asp:repeater>
</asp:repeater>
I read from somewhere that you would grab it in this fashion...
ctype(page.FindControl("level1:level2:ctl0:lblText"), Label).text
but I get a "Object Not Instantiated" error.....
Thanks in Advance
Steven
I was wondering how you would access the text of a label which is contained within an asp reapeater....
for example,...
<asp:repeater id="level1" runat="server" datasource="....">
<asp:repeater id="level2" runat="server" datasource="...">
<asp:label id="lblText" runat="server">Text</asp:label>
</asp:repeater>
</asp:repeater>
I read from somewhere that you would grab it in this fashion...
ctype(page.FindControl("level1:level2:ctl0:lblText"), Label).text
but I get a "Object Not Instantiated" error.....
Thanks in Advance
Steven