Possible Duplicate:
Update a table from two comma separated parameter as input
I have a Gridview in front end where Grid have two columns : ID and Order like this:
ID Order
1 2
2 4
3 1
4 3
Order column is editable. Now if I want to update the order and make save I want to store it into database. I have stored ID and Order as a comma separated string like sID(1,2,3,4) and sOrder(2,4,1,3) and sent to SQL Server as input parameters. Through Stored procedure how can update into the table.