Drop Down List User Control

Discussion in 'ASP .Net' started by jacbyrd@gmail.com, Jun 19, 2007.

  1. Guest

    I have created a user control that is a drop down list that pulls from
    my database. I then drop that control into a detailsview control on
    an insert item template. When I run the insert command, the drop down
    list control isn't returning a value. How can I pass the value from
    the drop down list control into the Insert Command Parameters? The
    same situation works fine when the drop down list isn't a user control
    but is created on the screen. I would like to use the usercontrol
    because I will be using these values in multiple places.
    , Jun 19, 2007
    #1
    1. Advertising

  2. David Wier Guest

    When you populate the ddl, in your usercontrol - are you doing it in the
    page_Load event?
    And if so - is it inside an Postback block?
    And, is there a property you are using to get the DDL's selected item?

    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://iWritePro.com



    <> wrote in message
    news:...
    >I have created a user control that is a drop down list that pulls from
    > my database. I then drop that control into a detailsview control on
    > an insert item template. When I run the insert command, the drop down
    > list control isn't returning a value. How can I pass the value from
    > the drop down list control into the Insert Command Parameters? The
    > same situation works fine when the drop down list isn't a user control
    > but is created on the screen. I would like to use the usercontrol
    > because I will be using these values in multiple places.
    >
    David Wier, Jun 19, 2007
    #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. SirPoonga
    Replies:
    2
    Views:
    752
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    1,009
    weiwei
    Jan 5, 2007
  3. msimmons
    Replies:
    0
    Views:
    470
    msimmons
    Jul 16, 2009
  4. Replies:
    5
    Views:
    266
  5. Replies:
    3
    Views:
    284
Loading...

Share This Page