EntityDataSource Events

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

NameDescription
System_CAPS_pubeventContextCreated

Occurs when the EntityDataSource has finished creating the ObjectContext that is used to work with entity data objects.

System_CAPS_pubeventContextCreating

Occurs when the EntityDataSource creates the ObjectContext that is used to work with entity data objects.

System_CAPS_pubeventContextDisposing

Occurs before an ObjectContext is disposed of.

System_CAPS_pubeventDataBinding

Occurs when the server control binds to a data source.(Inherited from Control.)

System_CAPS_pubeventDeleted

Occurs after an object has been deleted from the data source.

System_CAPS_pubeventDeleting

Occurs before an object is deleted from the data source.

System_CAPS_pubeventDisposed

Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.(Inherited from Control.)

System_CAPS_pubeventInit

Occurs when the server control is initialized, which is the first step in its lifecycle.(Inherited from Control.)

System_CAPS_pubeventInserted

Occurs after a new object is created at the data source.

System_CAPS_pubeventInserting

Occurs before a new object is persisted to the data source.

System_CAPS_pubeventLoad

Occurs when the server control is loaded into the Page object.(Inherited from Control.)

System_CAPS_pubeventPreRender

Occurs after the Control object is loaded but prior to rendering.(Inherited from Control.)

System_CAPS_pubeventQueryCreated

Occurs after the EntityDataSource creates an Entity SQL query that was specified during the configuration of the EntityDataSource control.

System_CAPS_pubeventSelected

Occurs after a query has been executed.

System_CAPS_pubeventSelecting

Occurs before a query is constructed and executed.

System_CAPS_pubeventUnload

Occurs when the server control is unloaded from memory.(Inherited from Control.)

System_CAPS_pubeventUpdated

Occurs after changes to an object have been persisted to the data source.

System_CAPS_pubeventUpdating

Occurs before changes to an object are persisted to the data source.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_priveventIDynamicDataSource.Exception

Occurs when validation fails in a partial methods or when an exception is raised.

System_CAPS_pubinterfaceSystem_CAPS_priveventIDataSource.DataSourceChanged

This API supports the product infrastructure and is not intended to be used directly from your code. Occurs when a data source control has changed in a way that affects data-bound controls. (Inherited from DataSourceControl.)

Return to top
Show: