Solved

Ajax combobox problem

Posted on 2011-03-22
1
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

728 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