I have a DetailsView control with DataKeyNames="JobId"
(Primary Key for my DB table).
When a row has been inserted OnItemInserted
I need to retrieve the JobId just created and use in some code.
I am not able to do it... Could you please post a easy example?
My solution was to Use DetailsView in association with a EntityDataSource. An apply code in event OnItemInserted for the EntityDataSource instead that DetailsView. So it is possible to cast an Entity to a Context Object and use the value JobId just created. Hope can help someone else.