Detailsview itemupdating event example
The Details View control allows you to edit, delete, and insert records.
Validation server controls are also provided to assess user input. Auto Generate Insert Button properties to true, respectively.
When the Details View control is bound to a data source control, the Details View control can take advantage of the data source control's capabilities and provide automatic updating, deleting, inserting, and paging functionality. Input controls that are appropriate for the field's data type (such as a Text Box or a Check Box control) are displayed with a field's value for the user to modify.
The Details View control provides built-in capabilities that allow the user to update, delete, insert, and page through items in the control. In edit mode, the Edit button is replaced with an Update and a Cancel button.
Use one of the following methods to bind the Details View control to the appropriate data source type: For more information on data binding, see ASP. This control can be used to display user input, which might include malicious client script.
The Details View control can be bound to a data source control (such as the Sql Data Source control or Object Data Source control) or to any data source collection that implements the IEnumerable interface, such as Data View, Array List, List`1, or other collection types.