Getting Repeater By String in ASP.NET
<p>I have a bunch of repeaters in an aspx page like "repeater1","repeater2", etc</p>

<p>I want to access them like </p>

<pre><code>for(int i = 0; i &lt; 5; i++) 
   // get the repeater like FindRepeater("repeater"+i) and bind it
</code></pre>

<p>In the code behind Page_Load I tried</p>

<pre><code>Repeater repeater = (Repeater)this.FindControl("repeater"+i)
</code></pre>

<p>but it says I can't cast a Control to a Repeater. </p>

<p>How can this be done?</p>
