System.Web
2.0.0.0
System.EventArgs
The control raises the event when an Insert button (a button with its CommandName property set to "Insert") within the control is clicked, but after the control inserts the record. This allows you to provide an event handler that performs a custom routine, such as checking the results of an insert operation, whenever this event occurs.
A object is passed to the event handler, 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 insert 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 handler by setting the property. If you need to access the values of the inserted record, use the property.
By default, the control returns to the mode specified by the property after an insert operation. To keep the control in insert mode, set 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 the initial property values for an instance of .
-
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 insert operation.
An that represents the exception raised when the insert operation was performed. If no exception was raised, use null for this parameter.
2.0.0.0
Property
System.Int32
To be added.
Use the property to determine the number of rows affected by the insert operation. This value is commonly used to verify that the appropriate number of rows was inserted.
Gets the number of rows affected by the insert 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 insert 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 passed to the next method on the call stack for handling.
Gets the exception (if any) that was raised during the insert operation.
2.0.0.0
Property
System.Boolean
To be added.
When an exception is raised during the insert 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 passed further up the call stack. If this property is set to false, the exception is passed to the next method on the call stack for handling. To determine which exception was raised, use the property.
Gets or sets a value indicating whether an exception that was raised during the insert 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. Use the property to specify whether the control should remain in insert mode after an insert operation. To keep the control in insert mode, set this property to true.
This property should be used when you want to want to override the default mode only occasionally. If the control needs to remain in insert mode by default, set the property instead.
Gets or sets a value indicating whether the control should remain in insert mode after an insert operation.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
Use the property to access the values of the fields for the inserted record. For example, you can use these values to keep a log of inserted records.
The property returns an object that implements the interface. The object contains objects that represent the fields of the inserted 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 field name/value pairs for the inserted record.
2.0.0.0