SelectionList Problem

Discussion in 'ASP .Net Mobile' started by Sanjay Sood, Jul 17, 2003.

  1. Sanjay Sood

    Sanjay Sood Guest

    Hi,

    I am having trouble with the SelectionList control. I am binding the
    datasource to a Access OleDbDataReader. The data shows up properly in the
    dropdown menu. The problem arises when trying to capture the user's
    selection by using SelectedIndex. For some reason it is always
    returning -1. I tried to manually add items (using Items.Add) and
    SelectedIndex works fine. Is there a bug related to using this type of data
    binding?

    Thanks,

    _sanjay
     
    Sanjay Sood, Jul 17, 2003
    #1
    1. Advertising

  2. Sanjay Sood

    Ran Guest

    Hi..did you find out what the problem was??
    I have a problem with my databound selectionlist..in my case i use the
    item.selected function to find out which item is selected..it works if i
    manually add items..but doesnt work when the selectionlist is databound..
    Do let me know..

    Ran
     
    Ran, Aug 12, 2003
    #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. Kenny

    SelectionList Control

    Kenny, Dec 1, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    322
    Kenny
    Dec 1, 2003
  2. Brad Wist

    SelectionList DataValueField problem

    Brad Wist, Jul 30, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    166
    Brad Wist
    Jul 30, 2003
  3. Ran

    Databound SelectionList Problem

    Ran, Aug 11, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    149
  4. leezard

    SelectionList problem

    leezard, Aug 17, 2003, in forum: ASP .Net Mobile
    Replies:
    1
    Views:
    158
    duncan mason
    Aug 21, 2003
  5. domchik
    Replies:
    0
    Views:
    166
    domchik
    Sep 2, 2003
Loading...

Share This Page