Need help with making label of repeater visible and link button hidden in code behind
<p>aspx page:-</p>

<pre><code> &lt;asp:Repeater ID="rptAdd" OnItemCommand="rptAdd_ItemCommand" runat="server"&gt;
   &lt;ItemTemplate&gt;

&lt;td&gt;

&lt;asp:LinkButton ID="lnkBill" Text="Make Default" runat="server" Visible="true" CommandName="DefaultBill"&gt;&lt;/asp:LinkButton&gt;

&lt;asp:Label ID="labelBill" Text="Yes" Visible="false" runat="server"&gt;&lt;/asp:Label&gt;
&lt;/td&gt;

 &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>Code Behind:-</p>

<pre><code>protected void rptAdd_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
       if (e.CommandName == "DefaultBill")


        {
            Users objBill = new Users();

            objBill.IsDefault = true;

            e.Item.FindControl("labelBill").Visible=true;
            e.Item.FindControl("lnkBill").Visible = false;



        }

    }
</code></pre>

<p>In code behind intellisense is not detecting "labelBill" and "lnkBill"..what could be wrong ?
Also need to know...that's how u access controls in a repeater ?? like using findControl() ...right ?</p>

<p>[EDIT]</p>

<p>Changed code as follows..still not working...</p>

<pre><code>        ((Label)e.Item.FindControl("labelBill")).Visible=true;
        ((LinkButton)e.Item.FindControl("lnkBill")).Visible = false;
</code></pre>

<p>Why wont intellisense detect these two IDs??</p>
