473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ImageButton does not trigger Repeater.ItemCommand event

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
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 15 '07 #1
2 4638
On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hotmail.comwrote:
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/
Nov 15 '07 #2
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
nj********@hotmail.com
http://www.nathansokalski.com/

"keithrull" <ke********@gmail.comwrote in message
news:f5**********************************@e10g2000 prf.googlegroups.com...
On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hotmail.comwrote:
>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/

Nov 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark Fox | last post by:
Hello, I have a repeater and in each itemtemplate I have a radiobuttonlist. I am attempting to figure out how on postback I could iterate through the rows displayed by the repeater and for...
2
by: Jorge Ayala | last post by:
Well I'm trying to catch and act upon a button event that is placed within the item template of a repeater control. Yet the code I'm using isn't working. What I've seen out there to explain how...
0
by: Patrik Persson | last post by:
Hello all I have got a problem with a nested repeater and the ItemCommand Event. I am adding handler for the ItemCommand and ItemBound. The ItemBound works perfect but I cant seem to get the...
3
by: Piotr Strycharz | last post by:
Hi, I have a Repeater with CheckBox in one of its columns. In ItemDataBound handler I'm doing: chk.CheckedChanged += new EventHandler(chk_CheckedChanged). The chk_CheckedChanged handler is...
9
by: Joe | last post by:
I have a DataGrid with a templated column that displays ImageButtons. I need to know if one of these buttons caused the postback or just another button on the form. If one of these buttons caused...
3
by: Joel Daniels | last post by:
Hello, I am trying to determine the proper way to access the underlying data row for a Repeater item in the ItemCommand event. In the page load event, I bind the Repeater data source to a...
0
by: Amir | last post by:
Hi every one This is the problem: I have a UserControl that contains a Repeater and a few LinkButton. The Repeater generate some linkButton. I use this control for implementing paging solution...
3
by: Jimmy | last post by:
Hi, I built a webform with a repeater: <asp:repeater id="rep1" runat="server" DataSource='<%# ar %>'> <ItemTemplate> <asp:Button Runat=server Text="<%# Container.DataItem %>" ID="Button1"...
0
by: Adam Right | last post by:
Hi All, i am using CommandArgument of imagebutton in a Repeater for adding a item to shopping basket, like that; ************************** <asp:Repeater ID="Repeater1" runat="server"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.