Newbie: Help with DetailsView insert

Discussion in 'ASP .Net' started by news.sbcglobal.net, Oct 2, 2006.

  1. Hi. I'm hoping this is a simple problem...

    I have a web page with a drop down list box containing data (colors for
    example) and a DetailsView control where the item selected in the drop down
    list box can be edited or a new item added. It's adding items that I'm
    having trouble with.

    When my user inserts a new value in the DetailsView, I would like that item
    to be selected automatically in the drop down list box. Any idea how to
    make this happen?

    Thanks!
     
    news.sbcglobal.net, Oct 2, 2006
    #1
    1. Advertising

  2. It thought I'd try to clarify this question a bit. Using one or both of the
    two events which are fired when an item is inserted (ItemInserting and
    ItemInserted) using the DetailsView control, I would like to capture the
    value of the item being inserted, requery the dropdownlistbox, and select
    the newly inserted item in the dropdownlistbox. Thanks again for any help
    you can offer.

    "news.sbcglobal.net" <> wrote in message
    news:Fi%Tg.8168$...
    > Hi. I'm hoping this is a simple problem...
    >
    > I have a web page with a drop down list box containing data (colors for
    > example) and a DetailsView control where the item selected in the drop
    > down list box can be edited or a new item added. It's adding items that
    > I'm having trouble with.
    >
    > When my user inserts a new value in the DetailsView, I would like that
    > item to be selected automatically in the drop down list box. Any idea how
    > to make this happen?
    >
    > Thanks!
    >
     
    news.sbcglobal.net, Oct 2, 2006
    #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. cannontrodder
    Replies:
    1
    Views:
    736
    cannontrodder
    Jul 25, 2006
  2. DC
    Replies:
    5
    Views:
    457
  3. eagle

    Insert & Insert/Repeat buttons in a detailsview

    eagle, Jul 12, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,063
    eagle
    Jul 12, 2007
  4. Feege
    Replies:
    0
    Views:
    480
    Feege
    Dec 20, 2005
  5. sim18

    Help with detailsView insert

    sim18, May 7, 2013, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    452
    sim18
    May 7, 2013
Loading...

Share This Page