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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:30:43+00:00 2026-06-12T10:30:43+00:00

I have a Repeater control that outputs various forum posts on the page. Within

  • 0

I have a Repeater control that outputs various forum posts on the page.

Within each repeater row, I have a LinkButton and 4 TextBoxes that contain values.

When I click on one of the LinkButtons, in my event handler code, I want to get the values that are in each of the 4 TextBoxes that correspond with that one particular repeater item/row.

I can repeat through each item within the repeater, but I am only interested in the values that exist in the 4 textboxes that sat alongside the LinkButton that was clicked/that triggered the event. I’m not interested in any of the Textbox values that belong to the other rows/items within the repeater.

What’s the best way to do this?

  • 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-06-12T10:30:44+00:00Added an answer on June 12, 2026 at 10:30 am

    You can use with ItemCommand event and e.Item.FindControl

    Link : http://msdn.microsoft.com/fr-fr/library/system.web.ui.webcontrols.repeater.itemcommand.aspx

        protected void Repeater_ItemCommand(object source, RepeaterCommandEventArgs e) 
        {
            if(e.CommandName == "YourCommand" ) //Adjust your CommandName
            {
                var textbox1 = (TextBox)e.Item.FindControl("YourIdTextBox1");  //Adjust your Id of TextBox  in row   
                var textbox2 = (TextBox)e.Item.FindControl("YourIdTextBox2"); 
                var textbox3 = (TextBox)e.Item.FindControl("YourIdTextBox3"); 
                var textbox4 = (TextBox)e.Item.FindControl("YourIdTextBox4"); 
    
                ....
            }
        }
    
    • 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 that houses several RadioButtonLists with various RadioButtons in each
I have a DropDownList inside a repeater control in an ASP.NET page that has
I have a page (category-list.apsx) that uses the Repeater Control method to display the
Good Afternoon, I have a page (category-list.apsx) that uses the Repeater Control method to
I have a page on my ASP.NET site that has a Repeater control to
I have a repeater control that contains an ItemTemplate containing a databound label and
I have a Repeater control that is being bound to the result of a
I have a Repeater control that loads instances of a custom control I have
Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id=myFormView runat=server
I have Repeater Control and in that i have code like this <div runat=server

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.