Access a control that we made with Itemplate
<p>There is a templated control
that we want to access the inner template control's properties ,</p>

<p>How can I achieve this ?
All I want is :
ibtnPrev.Visible = false ;</p>

<pre><code>class CFooterTemplate : ITemplate
{

    Label lblPaging;
    ImageButton ibtnPrev;
    ImageButton ibtnNext;

    public void InstantiateIn(Control container)
    {
        lblPaging = new Label();
        ibtnPrev = new ImageButton();
        ibtnNext = new ImageButton();

        container.Controls.Add(ibtnNext);
        container.Controls.Add(lblPaging);
        container.Controls.Add(ibtnPrev);
</code></pre>

<p>}</p>

<p><hr /></p>

<p>Access an Inner control and Change one of it's properties</p>

<pre><code>        listCase.FooterTemplate = new CFooterTemplate();
</code></pre>

<p>Now e.g we want to set the <strong>visibility</strong> of <strong>ibtnPrev</strong> to false
How many ways do we have , and what is your suggested method ,
thanks</p>

<p>Just I want to do this
    ibtnPrev.Visible = false ;</p>
