I'm using a third party control called an Accordion from Juice UI. Within that control, I have a table with labels.

VB.NET Code:
  1. <juice:Accordion ID="accSwrlHddRepl" runat="server">
  2.                 <juice:AccordionPanel runat="server" Title="HDD Information">
  3.                     <PanelContent>
  4.                         <p>
  5.                             <table style="width: 99%;">
  6.                                 <tr>
  7.                                     <td class="style2">
  8.                                         <asp:Label ID="Label2111111" runat="server" Text="Original HDD:"></asp:Label>
  9.                                     </td>
  10.                                     <td>
  11.                                         <asp:Label ID="lblOriginalHDD" runat="server" Text="N/A"></asp:Label>
  12.                                     </td>
  13.                                 </tr>
  14.                                 <tr>
  15.                                     <td class="style2">
  16.                                         <asp:Label ID="Label16666666" runat="server" Text="First HDD Replacement:"></asp:Label>
  17.                                     </td>
  18.                                     <td>
  19.                                         <asp:Label ID="lblFirstHddReplacement" runat="server" Text="N/A"></asp:Label>
  20.                                     </td>
  21.                                 </tr>
  22.                                 <tr>
  23.                                     <td class="style2">
  24.                                         <asp:Label ID="Label39876" runat="server" Text="Second HDD Replacement:"></asp:Label>
  25.                                     </td>
  26.                                     <td>
  27.                                         <asp:Label ID="lblSecondHddReplacement" runat="server" Text="N/A"></asp:Label>
  28.                                     </td>
  29.                                 </tr>
  30.                             </table>
  31.                         </p>
  32.                     </PanelContent>
  33.                 </juice:AccordionPanel>
  34.                 <juice:AccordionPanel runat="server" Title="Replace HDD(s)">
  35.                     <PanelContent>
  36.                        
  37.                     </PanelContent>
  38.                 </juice:AccordionPanel>
  39.                 <juice:AccordionPanel runat="server" Title="SWRL Letter">
  40.                     <PanelContent>
  41.                        
  42.                     </PanelContent>
  43.                 </juice:AccordionPanel>
  44.             </juice:Accordion>

I can't access the label directly, so I'm trying to use the FindControl method to get it and set it's text property.

VB.NET Code:
  1. CType(Me.accSwrlHddRepl.FindControl("lblFirstHddReplacement"), System.Web.UI.WebControls.Label).Text = "string"

But I get a NullReferenceException. So I moved the label outside of the table and put it just inside the accordion. The same behavior occurs. Then I gave the accordion panel an ID and did FindControl there, but the same issue occurs.

So I'm a little confused here.

Anyone have any ideas?