Drop Down not giving proper selecteditem value

Discussion in 'ASP .Net Web Controls' started by Steve, Oct 24, 2005.

  1. Steve

    Steve Guest

    I have a few drop downs on a user control which are loaded on a webform. I
    populate the drop downs via a datasource. Both the DataTextField &
    DataValueField properties are set. When I set the DataValueField property an
    incorrect SelectedItem value is returned. If i disable the DataValueField
    property from being filled, I receive the proper SelectedItem value.

    Any thoughts?

    Steve.
     
    Steve, Oct 24, 2005
    #1
    1. Advertising

  2. Steve

    Steve Guest

    I failed to note that only 1 drop down on this user control performs this
    way. The other drop downs perform correctly taking the right DataValueField.

    Steve.

    "Steve" wrote:

    > I have a few drop downs on a user control which are loaded on a webform. I
    > populate the drop downs via a datasource. Both the DataTextField &
    > DataValueField properties are set. When I set the DataValueField property an
    > incorrect SelectedItem value is returned. If i disable the DataValueField
    > property from being filled, I receive the proper SelectedItem value.
    >
    > Any thoughts?
    >
    > Steve.
     
    Steve, Oct 24, 2005
    #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:
    806
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    1,052
    weiwei
    Jan 5, 2007
  3. msimmons
    Replies:
    0
    Views:
    525
    msimmons
    Jul 16, 2009
  4. Replies:
    5
    Views:
    304
  5. Replies:
    3
    Views:
    315
Loading...

Share This Page