Ciao,
io intendevo una cosa del genere
function Aggiorna(dato1 as string, ecc....)
dim Cmd as new odbcCommand
cmd.connection=connessione
cmd.commandtext = "Update tabella set(dato1=valdato1,ecc....) where id= "
for each riga as datarow in datagrid.rows
try
cmd.commandtext += riga("id")
cmd.executenonquery
catch ex as exception
return false
end try catch ex as expedition
next
return true
end function
cosi passi in rassegna tutte le righe e le aggiorni....sperando che non sia troppo grande la tabella
Fammi sapere
P.S. il codice l'ho scritto al volo scusami per eventuali errori di scrittura
ASP 2.0 - VB 2008