Provides data for the ItemUpdated event.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Initializes a new instance of theclass.
Gets the number of rows that were affected by the update operation.
Gets the exception, if any, that was raised during the update operation.
Gets or sets a value that indicates whether an exception that was raised during the update operation was handled during the event.
Gets or sets a value that indicates whether the ListView control should remain in edit mode after an update operation.
Gets a dictionary that contains the new values for the updated item.
Gets a dictionary that contains the original values for the updated item.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
The ListView control raises the ItemUpdated event when the UpdateItem method is called or when an Update button in the control is clicked, but after the ListView control updates the item. (An Update button is a button whose CommandName property is set to "Update".) This enables you to provide an event-handling method that performs a custom routine whenever this event occurs, such as checking the results of an update operation.
A AffectedRows property. To determine whether any exceptions occurred, use the Exception property. You can indicate whether the exception was handled in the event-handling method by setting the ExceptionHandled property. You can access the original field values by using the OldValues property. You can access updated field values by using the NewValues property.object is passed to the event-handling method. This object enables you to determine the number of items updated and to get any exceptions that might have occurred. To determine the number of items that were affected by the update operation, use the
By default, the ListView item returns to read-only mode after an update operation. If you handle an exception that occurred during the update operation, you can keep the ListView item in edit mode by setting the KeepInEditMode property to true.
For a list of initial property values for an instance of the ListViewUpdatedEventArgs constructor.class, see the
The following example shows how to use theobject to determine whether an exception occurred during an update operation.
This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.