Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > SelectionList Problem

Reply
Thread Tools

SelectionList Problem

 
 
Sanjay Sood
Guest
Posts: n/a
 
      07-17-2003
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



 
Reply With Quote
 
 
 
 
Ran
Guest
Posts: n/a
 
      08-12-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SelectionList Control Kenny ASP .Net 0 12-01-2003 02:17 PM
selectionList and datareader problem - Please Help!! domchik ASP .Net Mobile 0 09-02-2003 02:15 PM
SelectionList problem leezard ASP .Net Mobile 1 08-21-2003 10:59 AM
Databound SelectionList Problem Ran ASP .Net Mobile 0 08-11-2003 10:38 PM
SelectionList DataValueField problem Brad Wist ASP .Net Mobile 0 07-30-2003 08:35 PM



Advertisments