title: Problem adding control using AddAt method [ASP.NET]
body: <p>On my page I have the following Image control.</p>
  
  <pre><code>    &lt;asp:Image ID="Image1" ImageUrl="~/images/icons/returnarrow.gif" runat="server" /&gt;
  </code></pre>
  
  <p>Then on Page_Load I am doing the following.</p>
  
  <pre><code>    Image1.Controls.AddAt(1, new LiteralControl("ChildControl2"));
  </code></pre>
  
  <p>So what this should do (theoretically) is add a new LiteralControl next to the image. But it doesn't. However, If I change the index to 0 and the Image to a GridView control it works.</p>
  
  <p>What am I doing wrong?</p>