Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdownlist pls help!

Status
Not open for further replies.

ttxxpp

Programmer
Aug 10, 2005
9
SG
When i click on the above dropdownlist(Order by:) and select MemberID, the results displayed below will arrange according to MemberID. Does anyone know how to code for this? As i couldn't find a sample code related to these.

Thanks alot!
 
Hi,

It depends on how you want to implement the order by.

Options

1. When a user selects from the dropdown list, requery the SQL with the slected ordery by clause but submiting the page.
2. Use Javascript to sort by clicking the header of the table. Here is the link to JS
3. If not store the ResultSet in Collection as Objects and use the Compartor to sort the values.
ex:

Hope this will help to start off with.

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top