Author: digsy | Posted on: 6/8/2009 6:08:28 AM | Views : 485

I have a class that inserts the contents of a spreadsheet into a database.
I'd like it to return some values to the page that calls the class - namely:
1. number of rows created
2. number of errors
3. list of error conditions

I cant get my head around how I return 1-3.
I thought I could use an array with ReturnValues[0] = number of rows created, ReturnValues[1] = number of errors and all the rest of the items in the array being error conditions.
But somehow that seems messy.
Is there a better way ?
...

Go to the complete details ...