Getting the Identity from a newly inserted record (Again)

Posts   
 
    
Nomasus
User
Posts: 2
Joined: 06-Nov-2006
# Posted on: 06-Nov-2006 21:17:05   

I know that is not the first time this question is posted. But even reading all the response I'm not still sure about the right and easiest answer.

I'm using Adapter and LLBLGENproDataSource2 and I want to get the new id from the Details View ItemInserted method

Is it possible in a "easy" way?

 protected void dvJobs_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
 {

}

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 07-Nov-2006 07:39:49   
Nomasus
User
Posts: 2
Joined: 06-Nov-2006
# Posted on: 07-Nov-2006 09:42:08   

Thanks Walaa,

These are the two post I have already ridden, but I'm really new to this and I dont know what a UoW is, that why I was searching for an easiest way.

Maybe is time to learn about UoW.

Thanks again.