Formview Insert - set second field equal to the auto-generated primary key field value
Posted on 2007-10-17
I'm using Formview to create a SQL Server database record. There is a primary key field called ContribID which is an autoincrement field - ie identity specification=yes. There is a second field called ContribID2 which I would like to set = the automatically generated value of the ContribID, when I click the Submit button to insert the new record.
Is this possible? I code in VB.net.