Solved

Ajax combobox problem

Posted on 2011-03-22
1
359 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

12 Experts available now in Live!

Get 1:1 Help Now