Solved

Ajax combobox problem

Posted on 2011-03-22
1
360 Views
Last Modified: 2012-05-11
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
Comment
Question by:ayha1999
1 Comment
 
LVL 7

Accepted Solution

by:
nbove earned 200 total points
ID: 35192008
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now