Changing ListBox order with Javascript - changes lost on PostBack

G

Guest

I have up and down buttons on my web form which execute Javascript to move
the selected list item up or down in the list.

However, when I post the form back to save the list order in a database, the
original list order is still present and all changes are lost.

Any ideas on how I can overcome this?

James
 
G

Guest

just check if you are binding the listboxes during postback.
(ignore this msg if you are not)
srini
 
G

Guest

The order of the listbox is not posted back to the server. What I've always
done is written the order to a hidden input and parsed that on the server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top