This is a migrated thread and some comments may be shown as answers.

Retrieving Selected values from Combobox?

0 Answers 44 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Iron
Paul asked on 16 Feb 2012, 11:45 PM
Hey folks...

For the life of me I can't figure out what I'm doing wrong here.  I have an autocomplete combobox, databound by a LINQ datasource.  I am retrieving 2 fields, userName and userID and using them for the text field and value field respectively.  I get the list of usernames populating the combobox just fine but I'm unable to access the userID no matter what I've tried, using both a button click to get selectedvalue and the selecteditemchanged event of the combo box.  Clearly I'm missing something here... or I should have just taken a break a few hours ago ;)

Any advice would be greatly appreciated!


Paul


EDIT... Neverrrrrrrrrmind.  I think I got it sorted out.  Among other things I hadn't noticed that the indexchanged event handler wasn't registered in the aspx page, don't know why and I'm surprised it didn't throw an exception but nope.  A good lesson in learning when to take a break.

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Paul
Top achievements
Rank 1
Iron
Share this question
or