OK , ora che ho 2 minuti di tempo ti posto un esempio messo giu' meglio, sto lavorando e ti ho
messo un esempio grossolano
codice:
<% ' CREA CONNESSIONE bla bla bla
Rs.Open "Select * from tabella",Connection,2,3
if Request("action") <> "" then
CHIAVI = Split(Replace(Request("chiaviRs")&""," ",""),",")
for ww = 0 to UBound(Chiavi)
SQLUpdate = "update tabella set CAMPOE = " & Request("CAMPOE" & CHIAVI(ww)) &_
" where chiave = " & CHIAVI(ww))
Connection.Execute(SQLUpdate)
next
Rs.Requery
end if
%>
<form action="tuapag.asp">
<table>
<tr>
<td>CAMPO A</td>
<td>CAMPO B</td>
<td>CAMPO C</td>
<td>CAMPO D</td>
<td>CAMPO E</td>
</tr>
<%
k = 0
while not rs.eof %>
<tr>
<td><%=Rs("CAMPOA")%></td>
<td><%=Rs("CAMPOB")%></td>
<td><%=Rs("CAMPOC")%></td>
<td><%=Rs("CAMPOD")%></td>
<td><input type="text" name="CAMPOE<%=Rs("CHIAVE")%>" value="<%=Rs("CAMPOE")%>">
</tr>
<% if k = 0 then
outPutChiave = outPutChiave & Rs("chiave")
else
outPutChiave = "," & outPutChiave & Rs("chiave")
end if
rs.movenext
k = k + 1
wend %>
<tr>
<td colspan="5" align="center"><input type="submit" name="action" value="AGGIORNA">
<input type="hidden" name="chiaviRs" value="<%=outPutChiave%>"></td>
</tr>
</table>
</form>