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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:55:11+00:00 2026-05-29T22:55:11+00:00

I have an ASP.NET repeater, whose ItemTemplate is a WebUsercontrol named ProviderControl. <asp:Repeater ID=rep

  • 0

I have an ASP.NET repeater, whose ItemTemplate is a WebUsercontrol named ProviderControl.

<asp:Repeater ID="rep" runat="server" OnItemDataBound="rep_ItemDataBound">
    <ItemTemplate>
        <custom:ProviderControl ID="row" runat="server" />
    </ItemTemplate>
</asp:Repeater>

I am populating the custom control with data in the ItemDataBound event.

Inside the provider control I have two buttons that I want to be able to react to on the containing Page.
I know there are Commands, and Command arguments, but how would I do that?

Or is there an easier way than using Commands?

  • 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-29T22:55:12+00:00Added an answer on May 29, 2026 at 10:55 pm

    You have to handle ItemCommand event of “Repeater”.

    protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            Button btn = e.CommandSource as Button;
            Response.Write(btn.ID);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Repeater (ASP.Net). <asp:Repeater ID=rep runat=server> <ItemTemplate> <asp:TextBox runat=server ID=txt></asp:TextBox> <asp:CheckBox runat=server
I have a asp.net repeater control in a aspx page, with runat=server and an
I have an asp.net repeater control with a series of asp:hyperlink's <asp:HyperLink runat=server ID=name
I have the following repeater code: <asp:Repeater ID=repMain runat=server OnItemCommand=repMain_ItemCommand EnableViewState=false> <ItemTemplate> <dmg:testcontrol runat=server
I have an ASP.NET repeater, which contains 3 divs inside the ItemTemplate. Each div,
I have an ASP.NET repeater pulling comment data from a database. In my ItemTemplate
I have a repeater in my asp.net webform. In ItemTemplate of the repater i
I have an ASP.NET Repeater control with a FileUpload Control in its item template.
I have an Asp.Net repeater, which contains a textbox and a checkbox. I need
I have an ASP.NET repeater that shows a list of items with a delete

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.