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. Advertisements

  2. David C

    Munna Guest

    Munna, Aug 5, 2008
    #2
    1. Advertisements

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:
    874
    Giovanni Bassi
    Oct 20, 2003
  2. nalbayo
    Replies:
    2
    Views:
    5,872
    Bruce Barker
    Nov 11, 2005
  3. JimLad
    Replies:
    0
    Views:
    603
    JimLad
    Jan 16, 2009
  4. Vik
    Replies:
    2
    Views:
    703
    David
    May 27, 2009
  5. Frederick D'hont
    Replies:
    0
    Views:
    561
    Frederick D'hont
    Jul 25, 2005
  6. Replies:
    6
    Views:
    762
  7. Popezilla
    Replies:
    2
    Views:
    1,280
    Popezilla
    Mar 18, 2007
  8. Jeffrey
    Replies:
    3
    Views:
    320
    Joe Kaplan
    Sep 27, 2007
Loading...