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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top