Questions tagged [itemcommand]
69 questions
1
vote
1 answer
Why does my itemCommand DataGrid event only fire on the second click of an item in the grid control?
I am having an issue with my web forms datagrid responding to a click event. Allow me to explain:
Upon the page being loaded for the first time, a dropdownlist is filled for the user to select an item.
When the user selects an item in the…

Walker
- 11
- 4
1
vote
1 answer
GridView Updating on ItemCommand
i put all my custom "update" code in the RowCommand event, it works fine, but i still get an error from my Data Source
System.NotSupportedException: Updating
is not supported by ObjectDataSource
'GetSources' unless the UpdateMethod
is…

Madam Zu Zu
- 6,437
- 19
- 83
- 129
1
vote
1 answer
Why the in the ListView_ItemCommand event does not trigger on URL-Rewriting?
The ItemCommand of the ListView object triggers great, without URL Rewriting, (powered via urlrewriting.net)
Private Sub ListView_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles…

OrElse
- 9,709
- 39
- 140
- 253
1
vote
5 answers
ItemCommand event doesn't fire with the 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
- 47
- 1
- 8
1
vote
1 answer
How to access ItemTemplate control from ItemCommand event using Repeater
My repeater:
<%# Eval("Email") %>

Doug
- 125
- 2
- 11
- 22
1
vote
1 answer
Delete a row from Telerik Radgrid. How I get Index of that selected Row?
Here is the code I am using for delete functionality.
In RadgridItemdatabound funtion, I have to include this...
foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
{
…

Faisal Yasin
- 17
- 6
1
vote
0 answers
Get clicked item ID in posted data on clicking item command in repeater using ASP.NET
I want to get the ID of the Command-button on repeater that has been clicked in posted data on a server when it has been click.
When I check the posted data it is something like this:…

Pouya Samie
- 3,718
- 1
- 21
- 34
1
vote
0 answers
asp.net button in ITemplate doesn't fire Repeater ItemCommand event
i am a complete asp.net noob and the solution could be something very simple.
i have found, read and tried many answers to questions very similar to my question, but nothing works. i hope to find some help here.
this works perfectly with no…

Jinjinov
- 2,554
- 4
- 26
- 45
1
vote
1 answer
1
vote
1 answer
Button inside a repeater with dropdownlist
I have a repeater with a literal, a dropdown list, and a button.
…

TheAlbear
- 5,507
- 8
- 51
- 84
1
vote
3 answers
.NET nested repeater - Button click calls OnItemCreated eventhandler, not OnItemCommand
I have a project with a simple nested repeater. When i click the button, the OnItemCommand event is not called but the OnItemCreated is called (however, it does not call the Page_Load event handler). What am I misssing?
MARKUP