Home All Groups Group Topic Archive Search About
Author
14 Aug 2006 9:40 PM
gadya
I use the Msoft example  in "working with data in asp.net 2.0- creating a
business logic layer" as below to insert a record which I have entered in a
formview. I would like to follow this by displaying the inserted record
rather than returning to an arbitrary record in Edit mode - but I don't have
ithe new productID, only the number of rows affected.

products.addProductsRow(product)
dim rowsAffected as integer = adapter.update(products)
return rowsAffected = 1

Could anyone suggest how I might obtain the new productID while still using
the procedure above?
--
Victor