Microsoft
Software
Hardware
Network
Question : how to make store procedure to keep order in an table
I have a table which contains Controls Name and their order.
I am adding these controls according to their order under two divs on my asp.net page.
User can drag one control from any div and drop it on any div. These needs to change the order of that control so that next time when user comes back the control will appear on the same position where it was dropped last time.
I am not able to write a store procedure to accomplish that.
This is what I am trying to do,
If user has dropped a controls to column to then I need to arrange the order of all controls that comes below that so that the order remain correct like 1,2,3...
And same thing if user dropped a control on the same column and try to the order of the control
Table Structure
ID Name Column Order
1 Contolr1 1 1
2 Contolr1 1 2
3 Contolr1 1 3
4 Contolr1 2 4
5 Contolr1 2 5
Answer : how to make store procedure to keep order in an table
I will suggest you to use web parts to place your controls.
Otherwise it would been a cumbersome task to identify and store the location of each control in db.
Random Solutions
simple VB file download example
HTC Touch 3G: How can I really upgrade WM6.1 to WM6.5 and/or porting to latest Android?
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
Multiple Stored Procedures in a single transaction
get-wmiobject error - Powershell
windows 2008 64 server
Cisco 2950 Vlan for Voice
please check my .htaccess
Virtual Disk 0 degraded Perc 5i integrated
insert record and check for existing email address