Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3228168
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:39:37+00:00 2026-05-17T16:39:37+00:00

aspx page:- <asp:Repeater ID=rptAdd OnItemCommand=rptAdd_ItemCommand runat=server> <ItemTemplate> <td> <asp:LinkButton ID=lnkBill Text=Make Default runat=server Visible=true

  • 0

aspx page:-

 <asp:Repeater ID="rptAdd" OnItemCommand="rptAdd_ItemCommand" runat="server">
   <ItemTemplate>

<td>

<asp:LinkButton ID="lnkBill" Text="Make Default" runat="server" Visible="true" CommandName="DefaultBill"></asp:LinkButton>

<asp:Label ID="labelBill" Text="Yes" Visible="false" runat="server"></asp:Label>
</td>

 </ItemTemplate>
</asp:Repeater>

Code Behind:-

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;



        }

    }

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 ?

[EDIT]

Changed code as follows..still not working…

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

Why wont intellisense detect these two IDs??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:39:38+00:00Added an answer on May 17, 2026 at 4:39 pm

    The problem is that your controls are inside a repeater, the find control wont search recursively. Try this instead.

    rptAdd.FindControl("labelBull").Visible = true;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Repeater control in my aspx page: <asp:Repeater ID=repeater runat=server EnableViewState=false> <ItemTemplate>
I have two nested repeaters in my *.aspx page. <asp:Repeater runat=server id=rptMain> <ItemTemplate> <h1><%#DataBinder.Eval(Container.DataItem,
aspx file <ul> <asp:Repeater runat=server ID=rpt1 OnItemDataBound=rpt1_ItemDataBound> <HeaderTemplate> <li><a id=a1 href=javascript:void(0); runat=server>Text</a></li> </HeaderTemplate> <ItemTemplate>
Master Page : <ul> <li class=first><asp:HyperLink runat=server ID=lnkHome NavigateUrl=~/Forms/Default.aspx>Home</asp:HyperLink></li> <asp:Repeater runat=server ID=Repeater1 DataSourceID=SiteMapDataSource1 EnableViewState=False>
Let's say I have an aspx page with this calendar control: <asp:Calendar ID=Calendar1 runat=server
I have the following multiview set up in my aspx page: <asp:MultiView id=MultiView1 runat=server
i have a web page wit Repeater <asp:Repeater ID=Repeater1 runat=server> <HeaderTemplate> <th bgcolor=#666666 style=color:
I have the following ASPX code: <asp:ScriptManager ID=ScriptManager1 runat=server /> <asp:UpdatePanel runat=server ID=UpdatePanel UpdateMode=Conditional>
I have a javascript function in the default.aspx page of my asp.net website project.
I am using an asp:Repeater control in my .aspx page that looks similar to:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.