EntityDataSource Events
Assembly: System.Web.Entity (in System.Web.Entity.dll)
| Name | Description | |
|---|---|---|
![]() | ContextCreated | Occurs when the EntityDataSource has finished creating the ObjectContext that is used to work with entity data objects. |
![]() | ContextCreating | Occurs when the EntityDataSource creates the ObjectContext that is used to work with entity data objects. |
![]() | ContextDisposing | Occurs before an ObjectContext is disposed of. |
![]() | DataBinding | Occurs when the server control binds to a data source.(Inherited from Control.) |
![]() | Deleted | Occurs after an object has been deleted from the data source. |
![]() | Deleting | Occurs before an object is deleted from the data source. |
![]() | Disposed | 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.) |
![]() | Init | Occurs when the server control is initialized, which is the first step in its lifecycle.(Inherited from Control.) |
![]() | Inserted | Occurs after a new object is created at the data source. |
![]() | Inserting | Occurs before a new object is persisted to the data source. |
![]() | Load | |
![]() | PreRender | |
![]() | QueryCreated | Occurs after the EntityDataSource creates an Entity SQL query that was specified during the configuration of the EntityDataSource control. |
![]() | Selected | Occurs after a query has been executed. |
![]() | Selecting | Occurs before a query is constructed and executed. |
![]() | Unload | Occurs when the server control is unloaded from memory.(Inherited from Control.) |
![]() | Updated | Occurs after changes to an object have been persisted to the data source. |
![]() | Updating | Occurs before changes to an object are persisted to the data source. |
| Name | Description | |
|---|---|---|
![]() ![]() | IDynamicDataSource::Exception | Occurs when validation fails in a partial methods or when an exception is raised. |
![]() ![]() | IDataSource::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.) |


