title: e.Item.FindControl throws Object reference not set to an instance of an object
body: <p>Here is the part of Repeater code that throws exception... "Computer.Administrators" is StringCollection object. Debugger shows that "AdminsEnumerator.Current" gets correct string value but when "txtAdministrators.Text" tries to set value - exception is thrown. Please help with ideas. </p>
  
  <pre><code>&lt;asp:Repeater ID="repeatAdministrators" OnItemDataBound="repeatAdministrators_ItemDataBound" runat="server"&gt;
      &lt;HeaderTemplate&gt;
          &lt;tr&gt;
              &lt;td class="formLabel"&gt;
                  Administrators:
              &lt;/td&gt;
              &lt;td class="formInputText"&gt;
      &lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:TextBox ID="txtAdministrators" runat="server" MaxLength="50" Enabled="False"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
      &lt;/ItemTemplate&gt;
      &lt;FooterTemplate&gt;
          &lt;/td&gt; &lt;/tr&gt;
          &lt;tr&gt;
      &lt;/FooterTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>And here is code behind.</p>
  
  <pre><code> protected void btnPing_Click(object sender, EventArgs e)
      {
          //...
  
          repeatAdministrators.DataSource = Computer.Administrators;
          repeatAdministrators.DataBind();
      }
  
      protected void repeatAdministrators_ItemDataBound(object sender, RepeaterItemEventArgs e)
      {
          TextBox txtAdministrators = e.Item.FindControl("txtAdministrators") as TextBox;
          StringEnumerator AdminsEnumerator = Computer.Administrators.GetEnumerator();
  
          while (AdminsEnumerator.MoveNext())
          {
              txtAdministrators.Text = AdminsEnumerator.Current;
          }
      }
  </code></pre>