Todd,
[quoted text, click to view] "Todd Lu" wrote:
> 1. Datagrid
> Each row could have the same information but most likely will not. The
> information that are changing on the datagrid rows are 4 check boxes the
> user can choose any combination of the check boxes for multiple rows before
> they need to save so that is why I would like to save only once for all the
> rows.
I think you're stuck here. You could set up a DataSet/DataAdapter pair,
modify each row in the DataSet, then call DataAdapter.Update() with the
modified DataSet; however, because of limitations of SQL, the DataAdapter is
going to make an Update for each modified row. This is a limitation of SQL
and is hard to work around (you can only specify one set of new values in an
UPDATE).
[quoted text, click to view] >
> 2. Array
> The array that I am using is a older vb6 arrary that I ported over to my
> ASP.NET project.
> Private JResultArray(41, 25, 8) As Double
>
> I will need to import the information everytime a calculation button is
> clicked.
>
The easiest way to do this is going to again be with a DataAdapter/DataSet
pair. Depending on the underlying database, the DataAdapter might be able to
optimize this (some flavors of SQL support inserting multiple rows in a
single INSERT).
In general, unless you have a very slow storage device, or you have
thousands of simultaneous users, I think you are unlikely to see any
performance difference between one UPDATE and multiple UPDATEs or one INSERT
and multiple INSERTs.