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********@hotm ail.com http://www.nathansokalski.com/ 2 4672
On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hot mail.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...@hotm ail.comhttp://www.nathansokal ski.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/
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********@hotm ail.com http://www.nathansokalski.com/
"keithrull" <ke********@gma il.comwrote in message
news:f5******** *************** ***********@e10 g2000prf.google groups.com...
On Nov 15, 12:47 pm, "Nathan Sokalski" <njsokal...@hot mail.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...@hot mail.comhttp://www.nathansokal ski.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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 each row grab the selected value of
the radio button list. When is the Repeater.Items
collection populated? I first attempted to access the
Repeater.Items collection from the Command event of a
normal linkbutton on the page, but it was empty. Is...
|
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 to do this is way
complicated and assumes a familiarity with dot net that I don't have yet.
I'll get it eventually but this is where I'll get it. Here's my code.
First part is the user control and second is the code behind page
Use control
|
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 linkbuttons to work with
ItemCommand in the inner repeater. Can someone please help me?
The following code (almost) is my problem!
ASP CODE
|
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 supposed to fire when I click the
checkbox. Hoewever - it does not! It does not depend on EnableSessionState,
it does not depend on AutoPostBack. simply - does not fire at all.
Now - how am I going to know if user selects one of the rows in the...
|
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 the postback than I don't want
to do a DataBind otherwise I do.
I know __EVENTTARGET doesn't return this information. Is there anything else
that does?
Thanks,
Joe
| |
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 SqlDataReader. I check for !IsPostBack so the
data binding only happens the first time.
In the ItemCommand event, e.Item.DataItem is unassigned. Any suggestions?
Thanks!
|
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 for another repeater in
page.
(So I have a repeater and a Usercontrol that contains repeater)
|
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"
NAME="Button1"/>
</ItemTemplate>
</asp:repeater>
|
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"
OnItemCommand="Repeater1_ItemCommand">
<ItemTemplate>
<asp:ImageButton ID="addToBasket" runat ="server" CommandArgument='<%#
DataBinder.Eval(Container.DataItem,"STOCK_CODE")%>'
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |