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. Advertisements

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. =?Utf-8?B?TWFyY2Vs?=

    ImageButton in Repeater control

    =?Utf-8?B?TWFyY2Vs?=, Mar 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    498
    =?Utf-8?B?TWFyY2Vs?=
    Mar 4, 2004
  2. =?Utf-8?B?UmljaGFyZEg=?=

    Checkbox and dropdownlist row in repeater row

    =?Utf-8?B?UmljaGFyZEg=?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    6,623
    =?Utf-8?B?UmljaGFyZEg=?=
    Mar 24, 2006
  3. Replies:
    1
    Views:
    11,069
  4. Replies:
    4
    Views:
    716
  5. Nathan Sokalski
    Replies:
    2
    Views:
    1,242
    Nathan Sokalski
    Nov 17, 2007
  6. D
    Replies:
    0
    Views:
    511
  7. Ryan Taylor
    Replies:
    1
    Views:
    291
    Ryan Taylor
    Jan 13, 2005
  8. Nathan Sokalski

    ImageButton does not trigger Repeater.ItemCommand event

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