System.Web 2.0.0.0 System.EventArgs The control raises the event when an Update button (a button with its CommandName property set to "Update") within the control is clicked, but after the control updates the record. This allows you to provide an event-handling method that performs a custom routine, such as checking the results of an update operation, whenever this event occurs. A object is passed to the event-handling method, which allows you to determine the number of records affected and any exceptions that might have occurred. To determine the number of records affected by the update operation, use the property. Use the property to determine whether any exceptions occurred. You can also indicate whether the exception was handled in the event-handling method by setting the property. If you need to access the original key field values for the updated record, use the property. The original non-key field values can be accessed by using the property. Updated values (which include updated key field values, if you allow the user to edit key fields) are accessed using the property. By default, the control returns to the mode specified by the property after an update operation. When handling 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 handling 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 Use this constructor to initialize a new instance of the class. The following table shows initial property values for an instance of the class. Property Initial Value The value of the parameter. The object contained in the parameter. Initialized to false. Initialized to false. This constructor is used primarily by control developers when raising events. Initializes a new instance of the class. The number of rows affected by the update operation. An that represents the exception raised when the update operation was performed. If no exception is raised, use null for this parameter. 2.0.0.0 Property System.Int32 To be added. Use the property to determine the number of records affected by the update operation. This property is commonly used to verify that the correct number of records was updated in the following situations: Verify that only a single record was updated. Sometimes an improperly written update statement can update multiple records. Verify that a record was updated when an error occurs during the update operation that does not raise an exception. Verify that a record was updated when a data source control that supports conflict detection (optimistic concurrency checking), such as the and controls, has its property set to the ConflictOptions.CompareAllValues enumeration value. Under this setting, a record that has been modified by another user concurrently might not be updated. Gets the number of rows affected by the update operation. 2.0.0.0 Property System.Exception To be added. Use the property to determine the exception (if any) that was raised during the update operation. If no exceptions were raised, this property returns null. If an exception was raised and you decide to handle the exception in the event handler, be sure to 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 the exception was handled 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 indicating 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 the mode specified by the property after an update operation. Use the property to specify whether the control should remain in edit mode. To keep the control in edit mode, set this property to true. This property should be used only when a situation occurs (such as an exception being raised) that requires the control to behave differently than it normally would. If the control needs to remain in edit mode by default, set the property instead. Gets or sets a value indicating whether the control should remain in edit mode after an update operation. 2.0.0.0 Property System.Collections.Specialized.IOrderedDictionary To be added. The property contains the original values of the key fields listed in the property of a control. 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. If you allow the user to update the values of the key fields, the property contains the original key field values. The updated values are stored in the property. The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record. To access the field names, use the property of the object. Similarly, you can access the field values by using the property. As a shortcut, you can also use the indexer of the object to access the field values directly. Data source controls that rely on the field order (such as ) can access field values only by index. Gets a dictionary that contains the original 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. If you allow the user to update the values of the key fields, the property contains the original key field values. The updated values are stored in the property. The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record. To access the field names, use the property of the object. Similarly, you can access the field values by using the property. As a shortcut, you can also use the indexer of the object to access the field values directly. Data source controls that rely on the field order (such as ) can access field values only by index. 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 non-key field values for the updated record. For example, you can use these values to keep a log of updated records. A data source control that supports conflict detection (optimistic concurrency checking), such as the and controls, with its property set to the ConflictOptions.CompareAllValues also compares these original values against the record in the database before an update operation is performed. If a record has been modified by another user concurrently, the record is not updated. The property does not contain key fields. If you allow the user to update the values of the key fields, the original key field values are stored in the property. The updated values are stored in the property. The property returns an object that implements the interface. The object contains objects that represent the fields of the updated record. To access the field names, use the property of the object. Similarly, you can access the field values by using the property. As a shortcut, you can also use the indexer of the object to access the field values directly. Data source controls that rely on the field order (such as ) can access field values only by index. Gets a dictionary that contains the original non-key field name/value pairs for the updated record. 2.0.0.0