The ItemDataBound event is raised whenever an item in the DataList control is bound to data. This event provides an opportunity to access each item before the page is finally sent to the client for display. After this event is raised, the data item is nulled out and no longer available. This example illustrates a way to handle the ItemDataBound event of a DataList. The sidebar on the right panel contains a DataList control that is used to display a selection of hotels. In this case, the ItemDataBound event handler is used to accomplish the following:
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved. |
|