S
sck10
Hello,
How do you reference a label inside a repeater? I tried the following and
got the error:
Object reference not set to an instance of an object.
((Label)this.rptRSS.FindControl("lblRSSFeed")).Text = "My Value";
<asp:Repeater id="rptRSS" runat="server">
<HeaderTemplate>
<table class="tblOutline" border="1px" style="width:99%">
<tr>
<th style="width:50%"><asp:Label id="lblRSSFeed" runat="server" /></td>
</tr>
Thanks, sck10
How do you reference a label inside a repeater? I tried the following and
got the error:
Object reference not set to an instance of an object.
((Label)this.rptRSS.FindControl("lblRSSFeed")).Text = "My Value";
<asp:Repeater id="rptRSS" runat="server">
<HeaderTemplate>
<table class="tblOutline" border="1px" style="width:99%">
<tr>
<th style="width:50%"><asp:Label id="lblRSSFeed" runat="server" /></td>
</tr>
Thanks, sck10