Questions tagged [itemcommand]
69 questions
20
votes
12 answers
ASP.Net repeater Item Command not getting fired
OK, I've used repeaters literally hundreds of times without problems but something has gone awry today. I have a repeater and I'm subscribing to the itemCommand event, but when my command runs, the page posts back but the event isn't fired.
To get…

Ciaran O'Neill
- 2,572
- 6
- 34
- 40
6
votes
2 answers
repeater item command in asp.net
i am working with asp.net and i have a repeater.I want to take a respond from one of the items, which has been displayed by repeater.Here is my code:

Koray Durudogan
- 624
- 4
- 12
- 31
6
votes
5 answers
How I use the ItemCommand Event for my ListView in my ASP.NET Application
I have a ASP.NET Application with a ListView. In every Row in my ListView I have a LinkButton that open a new webform "Benutzer.aspx". my Problem is that I don't get the Index of this Row. I use the ItemCommand Event but it not work :(
Here my…

Tarasov
- 3,625
- 19
- 68
- 128
4
votes
2 answers
Get ID of the Control which fires ItemCommand in RadGrid

Kings
- 1,551
- 12
- 32
- 52
4
votes
1 answer
Make an asp:TextBox inside a Repeater fire the Repeater's ItemCommand when Enter pressed
I've got a repeater that contains TextBoxes and LinkButtons. When I click the LinkButton, the ItemCommand event fires OK. Wwhen I press Enter in any of the textboxes, the form that the repeater is inside is submitted. Ideally I'd want the behaviour…

Caius Jard
- 72,509
- 5
- 49
- 80
3
votes
3 answers
Button in a Repeater does not fire ItemCommand
Why would a button inside a Repeater not fire the Repeater's ItemCommand event? Is there a way to force it to do so? ViewState is Enabled.
In the code below, btnApprove and btnDelete are the buttons in question:

Mark Richman
- 28,948
- 25
- 99
- 159
2
votes
4 answers
how can find every item INFO inside a repeater (in ItemCommand event) - repeater datasource is a List<> collection
i have a list collection like below :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace FileExplorer.Classes
{
public class NewAddedFiles
{
public string FileName { get; set; }
…

SilverLight
- 19,668
- 65
- 192
- 300
2
votes
1 answer
ListView ItemCommand Event Not Firing in Firefox
I am dynamically adding buttons to a listview and using the ItemCommand event to handle the button click event using the CommandName property for the button. It works fine in IE, but when I try in Firefox 5, it is hitting the page load event but not…

daniel
- 155
- 3
- 10
2
votes
2 answers
ItemCommand event doesn't fire with repeater control
I am building a website whereby people, before checking out of the shopping cart (and transferring to the payment iframe) can select which items from the shopping cart list to delete. The results from the shopping card are listed in a Repeater…

Dragan
- 3,713
- 12
- 42
- 59
2
votes
3 answers
ItemCommand not firing on first click in Repeater or GridView
This has been driving me crazy for 2 days now - hope someone has seen this before.
I have this issue where the first click of a control within a repeater or grid view fails to fire the ItemCommand event, all subsequent clicks work. The controls are…

MikeW
- 185
- 1
- 3
- 14
2
votes
2 answers
How to fire a button event from inside a repeater?
I have done my research but can't find an efficient way to do the following in VB:
Each button should fire the same event.
The button event saves every repeater item and so each event is not unique.
I am aware I can use the ItemCommand option but…

DreamTeK
- 32,537
- 27
- 112
- 171
2
votes
3 answers
ASP.NET Repeater - HiddenField working without being declared
Using ASP.NET 4.0
Bit of a strange one here, my code works but I don't know why!
So I have some HTML like so:

Darthtong
- 1,017
- 4
- 18
- 30
1
vote
1 answer
Telerik text selection
I have a telerik radgrid, like shown underneath
| Username | Password |
-------------------------
| A_user | ***** |
| A_user2 | ***** |
| A_user3 | ***** |
When I click one of the rows, it will display the password of the…

Msonic
- 1,456
- 15
- 25
1
vote
1 answer
Repeater ItemCommand doesn't work when linked to the page
EDIT: I've found what's causing the issue, but I don't know why and I don't know how to fix it. I'm using JQuery Mobile to theme my site and when I remove this line:
I can get the repeater to work properly.…

Novacane
- 119
- 3
- 14
1
vote
1 answer
close Jquery Modal popup Datalist button click
i am running into a problem that i have a jquery modal popup in my usercontrol that i show on a click of a button and user selects something from datalist and then i returned some value on the parent user control in a hidden field all is fine till…

Devjosh
- 6,450
- 4
- 39
- 61