• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

Ajax combobox problem

I have populated an ajax combobox from an sql datasource. only two rows are there in the combo.

DisplayText 'abc'
Value '1234'

DisplayText 'abc'
Value '9874'

when I display the selected value and text in the selectChaned Event, I get only the first text and value regardless of the selection. what how dispaly the select text and value?

if I change the text 'abc' to 'abc2' in one of them then I get the correct text and value.

how can I fix the problem?

ayha
0
ayha1999
Asked:
ayha1999
1 Solution
 
Nathan BoveSoftware EngineerCommented:
It is having trouble because the display text is ambiguous.  Add more information to the display text to make it unique.  Try making the display text a concatenation of two fields so that the values will always be distinct.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now