Drop Down Lists for Query Task

Discussion created by salopez on May 10, 2010
I am looking for some help in creating drop down lists for a Query Task.  I have managed to create a sample service that populates a drop down list with data from my service, however I would like to order this list alphabetically by community name.  I have attached the code.  Is anyone aware of accomplish this?

Secondly I would like to then use this drop down list to narrow the search for the user. In other words, I would like the drop down list to select a subset of a larger dataset then allow the user to enter a street name to locate a given traffic count location.  This would involve using a drop down first, then a search box.  Is this possible?  If so how would I go about this?