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 179587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:25:59+00:00 2026-05-11T14:25:59+00:00

I am implementing a Repeater in my web application to display data. I want

  • 0

I am implementing a Repeater in my web application to display data. I want to add functional action links in a column similar to the built-in functionality in a GridView. Can anybody give me the steps required? I assume I will add a LinkButton control to each row, somehow set the OnClick event handler to point to the same method, and somehow pass in the unique identifier on the row as a parameter.

Thanks!

  • 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. 2026-05-11T14:26:00+00:00Added an answer on May 11, 2026 at 2:26 pm

    I’m guessing this is what you want.

        <asp:Repeater ID='rpt' runat='server'>         <ItemTemplate>             <asp:LinkButton ID='lbtn' runat='server' OnCommand='lbtn_Command'              CommandArgument='<%# DataBinder.Eval(Container.DataItem, 'KeyIDColumn') %>' ></asp:LinkButton>         </ItemTemplate>     </asp:Repeater> 

    Then in your code behind

    protected void lbtn_Command(object sender, CommandEventArgs e) {     int id = Convert.ToInt32(e.CommandArgument); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a comment control that uses an ASP.Repeater to display each comment. The
I'm implementing repeater paging with a pagedatasource and I'm trying to format the links.
I am implementing a HttpRequestValidationException in my Application_Error Handler, and if possible, I want
Before you say it, I'm perfectly aware that a data repeater could do it,
Whilst implementing my first MVVM application in WPF, I've been wondering about the pros
I am implementing a MapKit based application. I need a clarification that, it is
I'm implementing captcha on my website like the one in https://web.archive.org/web/20210304122904/https://www.4guysfromrolla.com/articles/060706-1.aspx . It is
Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing a 'sandbox' environment in Python used to be done with the rexec module
When implementing a needle search of a haystack in an object-oriented way, you essentially

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.