We help IT Professionals succeed at work.

accessing datalist image button

JDEE8297
JDEE8297 asked
on
I have a datalist control, and inside it I have an imagebutton, and a link and this is repeated across the page 5 times.

image 1   image 2 image 3 image 4 image 5

What I want to be able to do, is trap the event for any one of these images, and have the page load in the data for that particular image?
Comment
Watch Question

Director, IT Development
Commented:
Hi,

In the imagebutton properties, you can set the CommandName and CommandArgument, and then using these values, trap the event in the DataList OnCommand event.

Cheers,

G.

Author

Commented:
could you give me an example of this?

Author

Commented:
figured it out. :)

Author

Commented:
thanks for your help.