8
shouts

Getting the identity of a row inserted into a database table with SCOPE_IDENTITY

published 228 days, 2 hours, 49 minutes ago posted by TareqOmarTareqOmar 230 days, 1 hour, 21 minutes ago
Tuesday, December 15, 2009 11:41:59 AM GMT Sunday, December 13, 2009 1:09:06 PM GMT

In ASP.NET you often require the ID of a row that you have inserted into a SQL database, either to display the record, or to use the ID to modify data in linked tables. If you are using an SqlDataSource or ObjectDataSource then you can do this with the ReturnValue method.

category: ASP.NET | clicked: 52 | | source: blog.evonet.com.au | show counter code
tags: ASP .NET, SQL