views:

234

answers:

2

Hi, Please Explain with example ItemCommand and ItemDatabound of a Data Representation Control.

+3  A: 

ItemDataBound is an event that fires once on your server for every record bound to the control. ItemCommand is the event that will fire if you click a command button that is associated with the record.

Joel Coehoorn
A: 

These are events associated with data driven server controls.

ItemDataBound is fired everytime a new item is binded to your data control.

ItemCommand is fired when the command event for a Button or LinkButton or ImageButton inside the data control is used.

Scozzard