Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ImageButton does not trigger Repeater.ItemCommand event

Reply
Thread Tools

ImageButton does not trigger Repeater.ItemCommand event

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      11-15-2007
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?
--
Nathan Sokalski

http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
 
keithrull
Guest
Posts: n/a
 
      11-15-2007
On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hotmail.com> wrote:
> 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?
> --
> Nathan Sokalski
> njsokal...@hotmail.comhttp://www.nathansokalski.com/


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

--
Keith Rull
http://www.keithrull.com/
http://www.devpinoy.org/
 
Reply With Quote
 
 
 
 
Nathan Sokalski
Guest
Posts: n/a
 
      11-17-2007
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.
--
Nathan Sokalski

http://www.nathansokalski.com/

"keithrull" <> wrote in message
news:f5cc8d3d-76e0-4aaa-a093-...
> On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hotmail.com> wrote:
>> 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?
>> --
>> Nathan Sokalski
>> njsokal...@hotmail.comhttp://www.nathansokalski.com/

>
> Is the ItemCommand event defined in your Repeater. I have tried to
> simulate your problem but it works everytime i run it.
>
> --
> Keith Rull
> http://www.keithrull.com/
> http://www.devpinoy.org/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TkInter bind() event is not firing event trigger Anthony Papillion Python 3 06-23-2010 12:55 AM
ImageButton does not trigger Repeater.ItemCommand event Nathan Sokalski ASP .Net 2 11-17-2007 03:03 AM
ImageButton event doesn't fire but Button event does suzanne.boyle@gmail.com ASP .Net 4 06-13-2007 09:19 PM
Trigger ImageButton Click with a HttpWebRequest Benjamin Schwitter ASP .Net 3 05-26-2004 03:08 PM
Button Column added at run time does not seem to trigger SelectIndexChanged Event. Jim Mitchell ASP .Net Datagrid Control 1 08-16-2003 10:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57