Control Click

M

Msdn

On a page i read some data in a sql database which is ordered by a placement
field. - for each record i load a usercontrol which i put on a page.
Each Usercontrol contains 4 imagebuttons.

2 of those imagebuttons handles in which order the data should be read. On a
click on button1 the clicked record should be moved 1 position up(When i
click the button i make a databaseupdate which set placement=placement-1 on
the currentrecord, and placement=placement+1 on the previus record).

My Problem is that I the Onclick first fires after the i have read the
records which result in that the data isnt presented in the right order.

Hope anyone can help me.

Regards Keld Jakobsen
 

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

No members online now.

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,700
Latest member
jody1922

Latest Threads

Top