Now that I got the textbox to display the multiple rows from the DB, I need to return it back to the db for updating. How do I pass each item of the datalist to the stored proc?
Thanks guys!
Code:
myCommand = New SqlCommand("admin_UpdateDiet", oConn)
myCommand.CommandType = CommandType.StoredProcedure
myCommand.Parameters.Add(New SqlParameter("@AID", SqlDbType.Int))
myCommand.Parameters("@AID").Value = AID
myCommand.Parameters.Add(New SqlParameter("@Data", SqlDbType.Int))
myCommand.Parameters("@Data").Value = ??????
Thanks guys!