I’m using EntityDataSource with DetailsView in my ASP.NET application. I want to get identity column value after inserting the record. ObjectDataSource has e.ReturnValue property I want to know its equivalent in EntityDataSource?
I’m using EntityDataSource with DetailsView in my ASP.NET application. I want to get identity
Share
You can subscribe to the
Insertedevent, which is anEventHandler<EntityDataSourceChangedEventArgs>.The
EntityDataSourceChangedEventArgsinstance has an Entity property, representing the newly inserted entity.