Handling Repeater
Control Events
The Repeater
control supports the following events:
• DataBinding
—
Raised when the Repeater
control is bound to its data source.
• ItemCommand
—
Raised when a control contained in the Repeater
control raises an event.
• ItemCreated
—
Raised when each Repeater
item is created.
• ItemDataBound
—
Raised when each Repeater
item is bound.
The page in Listing 13.5 illustrates how you can use the DataBinding
, ItemCommand
, and ItemDataBound
events. This page uses a Repeater
control to update, delete, and insert database records (see Figure 13.4).
Figure 13.4. Editing database records with the Repeater
control.
Listing ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.