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?
You haven't provided a lot of usefull information regarding to this case: which database you have used, in which way you get the data and so on. So I can suggest you only take a look at http://msdn.microsoft.com/en-us/library/ks9f57t0.aspx there is a lot of samples how to overcome this issue.