Hi Rafa, thanks for the quick reply! I tried what you said, I translated to VB as the following: Protected Sub DSDemoInfo_Inserted( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs) Handles DSDemoInfo.Inserted Session( "decRetID" ) = e.ReturnValue End Sub...