Oh OK, sorry, I didn't know you were using a SqlDataSource; I'm not sure of the best way to do this with a Data Source control, but maybe by adding another parameter as an output parameter to the stored procedure, then add this to your insertparameters collection, and check that parameters defaultvalue property (sqlds.InsertParameters["RETURN_VALUE"].DefaultValue).
Brian
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).