Bindind Repeater to Stack List
<p>Here is code. Its not showing any compile or run time error. I debugged also then till data binding works fine. But then also controls not shown in web page!</p>

<p>Sample.aspx:</p>

<pre><code>    &lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;asp:PlaceHolder ID="_placeHolder1" runat="server"&gt;
    &lt;/asp:PlaceHolder&gt;
    &lt;/form&gt;
    &lt;/body&gt;
</code></pre>

<p>Sample.aspx.cs:</p>

<pre><code>     protected void Page_Load(object sender, EventArgs e)
     {
      _placeHolder1.Controls.Add(CreateReapeater());
     }

     private Control CreateReapeater()
     {
        Repeater _repeater1 = new Repeater();
        Stack _stack1 = new Stack();
        for (int i = 0; i &lt; 7; i++)
        {
            _stack1.Push(i);
        }
        _repeater1.DataSource = _stack1;
        _repeater1.DataBind();
        return _repeater1;
    }
</code></pre>
