System.Web
2.0.0.0
System.EventArgs
The control raises the event when an Update button in the control is clicked, but after the control updates the record. (An Update button is a button control whose CommandName property is set to "Update".) You can perform a custom routine whenever this event occurs, such as checking the results of an update operation.
A object is passed to the event handler, which enables you to determine the number of records that were affected and any exceptions that might have occurred. To determine the number of records that were affected by the update operation, use the property. To determine whether any exceptions occurred, use the property. You can also indicate whether the exception was handled in the event handler by setting the property.
To access the key field values for the updated record, use the property. You can access the original non-key field values by using the property. You can access the updated non-key field values by using the properties.
By default, the control returns to read-only mode after an update operation. When you handle an exception that occurred during the update operation, you can keep the control in edit mode by setting the property to true.
For more information about how to handle events, see Consuming Events.
For a list of initial property values for an instance of the class, see the constructor.
Provides data for the event.
Constructor
The following table shows initial property values for an instance of the class.
-
Property
Initial Value
-
The value of the parameter.
-
The object that is contained in the parameter.
-
Initialized to false.
-
Initialized to false.
This constructor is primarily used by control developers when they raise events.
Initializes a new instance of the class.
The number of rows that were affected by the update operation.
The exception that was raised when the update operation was performed. If no exception was raised, use null for this parameter.
2.0.0.0
Property
System.Int32
To be added.
Because only one record is typically updated, this property usually contains a value of 0 or 1.
An error can occur during the update operation that does not raise an exception. You can use the property to make sure that a record was updated.
Gets the number of rows that were affected by the update operation.
2.0.0.0
Property
System.Exception
To be added.
If an exception was raised and you decide to handle the exception in the event handler, set the property to true. Otherwise, the exception is thrown again by the control.
Gets the exception (if any) that was raised during the update operation.
2.0.0.0
Property
System.Boolean
To be added.
When an exception is raised during the update operation, use the property to indicate whether you handled the exception in the event handler. When this property is set to true, the exception is considered handled and is not thrown again by the control. If this property is set to false, the exception is thrown again. To determine which exception was raised, use the property.
Gets or sets a value that indicates whether an exception that was raised during the update operation was handled in the event handler.
2.0.0.0
Property
System.Boolean
To be added.
By default, the control returns to read-only mode after an update operation. To keep the control in edit mode, set the property to true.
Gets or sets a value that indicates whether the control should remain in edit mode after an update operation.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
Use the property to access the values of the key field for an updated record. For example, you can use these values to keep a log of updated records.
The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record.
As a shortcut, you can also use the indexer of the object to access the field values directly.
Gets a dictionary that contains the key field name/value pairs for the updated record.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
Use the property to access the new field values for the updated record. For example, you can use these values to keep a log of updated records.
The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record.
As a shortcut, you can also use the indexer of the object to access the field values directly.
Gets a dictionary that contains the new field name/value pairs for the updated record.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
Use the property to access the original field values for the updated record. For example, you can use these values to keep a log of updated records.
The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record with their original values.
As a shortcut, you can also use the indexer of the object to access the field values directly.
Gets a dictionary that contains the original field name/value pairs for the updated record.
2.0.0.0