Questions tagged [itemcommand]
69 questions
1
vote
2 answers
how to make that click on div fire onitemcommand event
My repeater code looks like below,
What I want is, when I click on div it should…

eerrzz
- 274
- 1
- 4
- 19
0
votes
1 answer
Attach javascript confirmation dialog to a linkButton/form in Repeater ItemCommand
I have a repeater and in its ItemCommand code, I need to do a database check if some records deleted and if yes, ask if the user wants to continue. Something like this
If e.CommandName="Clone" Then
'Do the database check to see if…

Lac Ho
- 217
- 4
- 15
0
votes
1 answer
ItemCommand event not firing for DataList
I've inherited a VB.Net application that I'm testing and the ItemCommand event is not firing... It is a VB.Net 4.0 application.
I've searched the web for this error and doubhle checked the code in the application.
I know this event is supposed to…

sagesky36
- 4,542
- 19
- 82
- 130
0
votes
2 answers
how to hide and display a particular column of repeater using code behind?
I have a repeater, on its item_command event i am binding another repeater. And i want to show data according to role in the second repeater. For it i want to hide and show some column according to role of users. how can we do it using code behind.…

Ram Singh
- 6,664
- 35
- 100
- 166
0
votes
1 answer
ItemCommand Fires Before ItemDataBound on PostBack? WTH?
This is just stupid. I've been at this for over 5 hours and can't figure out why my freaking commands aren't firing properly. The only ones that fire properly are the Built-in commands "Edit" & "Cancel"
Markup

Chiramisu
- 4,687
- 7
- 47
- 77
0
votes
2 answers
Determine if postback is page_load or itemcommand
I've got a user list on the left side of my page in a datagrid and I want to load a div in the right side of my page with the clicked user's information. I assume I'll do the load of the div in the itemcommand event, but how do I handle page load…

Caveatrob
- 12,667
- 32
- 107
- 187
0
votes
0 answers
ItemCommand for Datalist under User Control not firing
I'm a student and I have an issue with executing an ItemCommand for a data list inside a user control, the ItemCommand doesn't seem to run at all.

hainanjifan
- 3
- 2
0
votes
1 answer
Data List itemCommand function is not working
I've tried to create a datalist with itemcommand function altough it seems that the program doesn't get into the function of the itemcommand for some reason.
aspx

netser br
- 5
- 2
0
votes
2 answers
Can't get to rebind a Repeater after firing ItemCommand (using asyncpostback via updatepanel)
Here's the scenario:
I have a repeater inside an UpdatePanel called updPanel.
Inside this repeater I have two Buttons, which fire an ItemCommand.
In the page load I have this method:
if (!IsPostBack)
{
Bind();
}
Then, on…

Conrad Clark
- 4,533
- 5
- 45
- 70
0
votes
0 answers
Datagrid ItemCommand event not firing
I am still a novice with asp.net, so I'm sure there are better ways to do some of this...
I want to allow a user to enter a date, and then execute an SQL query against a database to return all records matching that date. I want to display those…

donsay
- 11
- 4
0
votes
0 answers
ItemCommand not working with repeater and few events
I get a repeater with 3 radio button (grouped in 3 rows by GroupName property) and triggered (per each radio button). My problem is coming when I add a HiddenField to the repeater column and I want to reach this HiddenField through ItemCommand…

Kenzo_Gilead
- 2,187
- 9
- 35
- 60
0
votes
0 answers
0
votes
1 answer
fetching data in repeater's ItemCommand event in asp.net?
(in asp.net) I have repeater which contains different controls like checkbox, textarea, radiobutton and button(Submit). When i click on submit button, ItemCommand event is fired and i want to get data from these controls there. How can i do this?…

SAM
- 119
- 2
- 14
0
votes
1 answer
Repeater does not fire ItemCommand
I Have read similar questions and answers to my question, and I have done the recommendations but still my problem is unsolved PLZ don't mark my question as repetitive.
I have a repeater which contains a tag. I want when user click this link ,…

mary
- 247
- 3
- 20
0
votes
1 answer
Best way to persist session variables on listview itemcommand ASP.NET
As the itemcommand event fires after most if not all page/control init/load events. what is the best way to persist session variable data that is modified on itemcomment (adding items for example) so that the page can react to the itemcommand using…

Skowronek
- 308
- 3
- 10