views:

1092

answers:

1

I have some items populated in the listbox from the database in my asp.net mvc(C#) application.

I need to give an option to move up/move down the items in the listbox and store it back to the database with the updated order.

I like to use jquery to move up / move down the items in the listbox. Whats the best way/soultion to do it? Or is there any best method to do it other than using it with listbox?

A: 

I don't have the code but there are several examples on the web of moving div's using jQuery.

My suggestion would be to ditch the list box in favour of some moveable divs or something.

Something like this might help you. it uses a list I think and allows you to reorder them. You can then jQuery the new order and store that in the database.

griegs
i am looking for exactly like this.
Prasad