A Details View Insert Event Args object is passed to the event handler, which allows you to indicate that the insert operation should be canceled.I was stocked for sometime using the 2.0 Details View control to Edit/Update data.I solve this problem by canceling the Item Updating event, changing the mode, and rebinding the details view data source.This was the only way I got things to worked for me.The edit button required two clicks to change the mode to Edit instead of Read Only.I solved this problem by changing the mode in the Mode Changing event handler and then rebinding the Details View control.This means the data access layer was bypassed completely, so any business logic that dealt with encryption on this page had to use a different execution path. The problem could be divided into two tasks: The first task was the easier of the two, as it just involved referencing the encryption library from the code behind page and calling the function inline in the aspx page.So, the method in the code behind page would look like something like this: However, decrypting the data using a templatefield tag posed another problem, extracting new values from the ‘Text Box1’ control.
For example ‘@Parameter’, will be sent in the update to the record instead of null.
The legacy code in the SQL data source used a update statement with parameters.
Normally the details view control automatically detects whether to pass a null in the parameter.
Save, Update, Delete in Details View Control in Details View is a Data Bound control of used to Displays the single record from a Data Source in the form of a table, where each row represents a field of the record.
The Details View control allows you to insert,edit and delete records.