Click here to Skip to main content
13,452,986 members (46,622 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a drop down in which I have different locations and depending upon this location drop down I have displayed Agents belonging to respective location.Now what I need is..I have allocated a agent to a location,so the agent which is allocated should be displayed last in drop down .I am not getting How to do this?Need help.
Posted 26-Jan-13 20:10pm
Updated 26-Jan-13 20:40pm
Vyacheslav Voronenko 27-Jan-13 2:33am
Have you tried anything? Saying writing select to database, creating view with dropdown, etc. What issue you are struggling with?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is quite simple, since the options are displayed in the dropdown in the order you put them. So if you want to have an option as last one, just add it as last one. But the code for "how to add as last one" depend on the rest of the code and the logic you want to implement.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180318.3 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100