ImageButton does not trigger Repeater.ItemCommand event

N

Nathan Sokalski

I have an ImageButton inside a Repeater control. However, the ImageButton
does not trigger the Repeater's ItemCommand event. For the moment, I am
nesting an Image control inside a LinkButton, which works, but requires more
work and 2 controls. I believe the reason for this is that the ImageButton
renders an <input type="image"/> while the LinkButton renders an <a></a>
tag. Any ideas?
 
K

keithrull

I have an ImageButton inside a Repeater control. However, the ImageButton
does not trigger the Repeater's ItemCommand event. For the moment, I am
nesting an Image control inside a LinkButton, which works, but requires more
work and 2 controls. I believe the reason for this is that the ImageButton
renders an <input type="image"/> while the LinkButton renders an <a></a>
tag. Any ideas?

Is the ItemCommand event defined in your Repeater. I have tried to
simulate your problem but it works everytime i run it.
 
N

Nathan Sokalski

What is being rendered by Repeater? I believe that depending on what some of
the other controls on the webform are it does work in some scenarios, but
not others. If this is the case, I am not sure what causes it to render one
way or the other.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top