L
Lenny
I run this code to insert some data into an access db
For i = 1 To 14
a = Master.FindControl("centro").FindControl("a" & i.ToString)
'Response.Write(a.Text)
If Len(a.Text) > 0 Then
SqlDataSource3.InsertParameters.Add("movimento", id)
SqlDataSource3.InsertParameters.Add("importo", a.text)
SqlDataSource3.InsertParameters.Add("sessione",
Session.SessionID)
SqlDataSource3.Insert()
End If
Next
the problem is that event all the sqls run, values into db are all the same:
the first cicle values.
values are taken correctly as I check them with response.write, but there's
no way to put them into db.
any suggestion?
thanks
Lenny
For i = 1 To 14
a = Master.FindControl("centro").FindControl("a" & i.ToString)
'Response.Write(a.Text)
If Len(a.Text) > 0 Then
SqlDataSource3.InsertParameters.Add("movimento", id)
SqlDataSource3.InsertParameters.Add("importo", a.text)
SqlDataSource3.InsertParameters.Add("sessione",
Session.SessionID)
SqlDataSource3.Insert()
End If
Next
the problem is that event all the sqls run, values into db are all the same:
the first cicle values.
values are taken correctly as I check them with response.write, but there's
no way to put them into db.
any suggestion?
thanks
Lenny