What is the ItemCommand and ItemDatabound view control?
Please explain an example of ItemCommand and ItemDatabound of a data view control.
+2
Vijjendra
source
to share
2 answers
ItemDataBound is an event that fires once on your server for every entry associated with a control. The ItemCommand is the event that will fire if you click the command button associated with the entry.
+6
Joel coehoorn
source
to share
These are events related to data-driven server controls.
ItemDataBound is fired every time a new item is bound to your data control.
The ItemCommand is fired when a command event is used for a button or LinkButton or ImageButton within a data control.
+1
Scozzard
source
to share