SqlDataSource identity

Discussion in 'ASP .Net' started by David C, Aug 4, 2008.

  1. David C

    David C Guest

    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
     
    David C, Aug 4, 2008
    #1
    1. Advertising

  2. David C

    Munna Guest

    Munna, Aug 5, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Giovanni Bassi
    Replies:
    0
    Views:
    673
    Giovanni Bassi
    Oct 20, 2003
  2. nalbayo
    Replies:
    2
    Views:
    5,595
    Bruce Barker
    Nov 11, 2005
  3. JimLad
    Replies:
    0
    Views:
    468
    JimLad
    Jan 16, 2009
  4. Frederick D'hont
    Replies:
    0
    Views:
    340
    Frederick D'hont
    Jul 25, 2005
  5. Replies:
    6
    Views:
    476
Loading...

Share This Page