SqlDataSource identity

D

David C

I have a FormView that has an InsertCommand using a stored procedure (e.g.
"Exec sp_insTable @item1, etc...)
I have a ListBox also on the screen that is tied to the same table and has a
selected value of the ID of the FormView. When I use the FormView in INSERT
mode I would like to set the SelectedValue of the ListBox to the newly
inserted record on the FormView (is the IDENTITY value returned from the
sp). Is there a way to do this? Thanks.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top