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
Outlook 2007 Tasks sending out automatic status reports (updates) when attachments are opened
Should Sys Admins (Domain Admins) also have user accounts?
checking login & pass with curl
Can WordPress be customized to some degree by manipulating files embeded in the WordPress file path
dladm show-link -s -i output
How can I edit my Excel list to include only one entry from each domain name
can't change password through OWA 2010
Plesk and Default Page
Best way to "reimage" office computers so that they all have same OS
convert c++ delegate parameters for managed code