ItemTemplate -> ImageButton event

1 posts, 0 answers
  1. void
    void avatar
    1 posts
    Member since:
    Sep 2010

    Posted 15 Sep 2010 Link to this post

    Good morning everyone,
    I have RadListBox with ItemTemplate like this:

    <asp:ImageButton runat="server" ID="imgTrashIcon" ImageUrl="~/url" />
     <asp:Literal runat="server" ID="ltr" Text='<%# Eval("") %>' />

    Can I delegate ImageButtons' OnClick event to the ListBoxItem i. e. it fires (and returns current data item) only when I click on the image, but not on the rest part of list box item.

    Thanx a lot
Back to Top