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

  • SEARCH
  • Home
  • 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 6323189
In Process

The Archive Base Latest Questions

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

I have a navigation bar which is dynamically populated with LinkButtons by an ASP

  • 0

I have a navigation bar which is dynamically populated with LinkButtons by an ASP repeaterControl.

I have no problem accessing, and setting properties for the clicked LinkButton. This I can do using the sender object from the fired LinkButton. Once a LinkButton is clicked, it is highlighted in bold.

My problem is to clear the bold property of the previously clicked linkButton when a new LinkButton ( another RepeaterItem within the same repeater) is clicked.

Any ideas on this, please? Many thanks!

ps.
I cannot access the buttons through their ID, since they all have the same ID within the repeater.

I have unique arguments on each RepeaterItem (CommandArgument), but when I try to iterate through all linkbuttons, only static linkbuttons are found, none inside the repeater. See below:

Dim c As Control
For Each c In Form1.Controls
    If TypeOf c Is LinkButton Then
        MsgBox(DirectCast(c, LinkButton).CommandArgument)
    End If
Next c
  • 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-24T16:28:20+00:00Added an answer on May 24, 2026 at 4:28 pm

    Try this:

    For each item as RepeaterItem in YourRepeaterControl.Items
    
        Dim button as LinkButton = item.FindControl("YourLinkButtonId")
        If button IsNot Nothing Then
            'Do whatever you want here
        End If
    
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET v2 I have MasterPage which includes the navigation bar for the site along
I am an iOS newbie. I have a navigation bar button which when clicked
I have an app, which has a top navigation bar and a bottom tab
I have a view which has it's own navigation bar and one tableview. I
I have a UITableView which occupies the entire screen, besides a navigation bar. The
I have a navigation bar which consists of a <img> elements within their respective
I have got a wire frame for ipad application, in which navigation bar and
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
If have a Navigation Bar and a Tab Bar in one of my views.
Imagine I have a navigation bar in my page header, with a number of

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.