title: how to bind inner repeater?
body: <p>i have a repeater inside another repeater. now i want to bind the inner repeater. but i m getting error of "Object reference not set to an instance of an object.". my code is</p>
  
  <pre><code>Protected Sub rep_test_ItemDataBound(ByVal sender As Object, ByVal e As   System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rep_test.ItemDataBound
      Dim dt As New DataTable
      dt = obj.getdata()
      Dim innerRepeater As Repeater = DirectCast(e.Item.FindControl("innerRepeater"), Repeater)
      innerRepeater.DataSource = dt
      innerRepeater.DataBind()
  End Sub
  </code></pre>
  
  <p>my source code is </p>
  
  <pre><code>&lt;asp:Repeater ID="rep_test" runat="server"&gt;
          &lt;ItemTemplate&gt;
              &lt;div id='h&lt;%# DataBinder.Eval(Container, "ItemIndex") %&gt;' class="header" onclick='ToggleDisplay(&lt;%# DataBinder.Eval(Container, "ItemIndex") %&gt;);'&gt;
                  &lt;%#DataBinder.Eval(Container.DataItem, "ID")%&gt;
              &lt;/div&gt;
              &lt;div id='d&lt;%# DataBinder.Eval(Container, "ItemIndex") %&gt;' class="details"&gt;
              &lt;asp:Repeater ID="rep_hello" runat="server"&gt;
              &lt;ItemTemplate&gt;
                  &lt;%#DataBinder.Eval(Container.DataItem, "batchid")%&gt;&lt;br /&gt;
                  &lt;%#DataBinder.Eval(Container.DataItem, "ts")%&gt;&lt;br /&gt;
              &lt;/ItemTemplate&gt;
              &lt;/asp:Repeater&gt;
              &lt;%--    &lt;%#DataBinder.Eval(Container.DataItem, "batchid")%&gt;&lt;br /&gt;
                  &lt;%#DataBinder.Eval(Container.DataItem, "ts")%&gt;&lt;br /&gt;--%&gt;
              &lt;/div&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
  </code></pre>