Using an ImageButton in Repeater control...How do I resolve the row's ID for the button's event?

Discussion in 'ASP .Net Web Controls' started by matt, Feb 2, 2004.

  1. matt

    matt Guest

    I want to use a Image Button inside a asp:Repeater control. I understand
    you handle the click of the button in the repeater's ItemCommand event. The
    one thing I don't understand is how do I know which row's button I clicked,
    since there will be an ImageButton per row of data. I cannot find a way to
    associate the ImageButton with the row's unique ID so I can perform some
    action against the DB using that ID.

    Thanks in advance.
    matt, Feb 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    10,103
  2. Replies:
    4
    Views:
    519
  3. Nathan Sokalski
    Replies:
    2
    Views:
    997
    Nathan Sokalski
    Nov 17, 2007
  4. Ryan Taylor
    Replies:
    1
    Views:
    190
    Ryan Taylor
    Jan 13, 2005
  5. Nathan Sokalski

    ImageButton does not trigger Repeater.ItemCommand event

    Nathan Sokalski, Nov 15, 2007, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    281
    Nathan Sokalski
    Nov 17, 2007
Loading...

Share This Page