Passo ad asp un filtro da flash, il filtro da flash viene passato correttamente e sempre, però non capisco perchè se filtro ID=1 o ID=2 rilevo i dati, se invece filtro dal 3 in poi non rilevo nulla....visto che non sono ferrata in asp..potreste dirmi se qualcosa è sbagliato?
grazie tante in anticipo
<%
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open "Driver=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("dati.mdb")
tipo= Request("CIAMP")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rstContacts = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "Select * From puntvend WHERE id=" & tipo
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
Response.write cmdTemp.CommandText
rstContacts.Open cmdTemp, , 1, 3
rstContacts.Move CLng(Request("Record"))
Response.write "ragsocintera=" & Server.URLEncode(rstContacts("ragsocintera")) & "&"
Response.write "loc=" & Server.URLEncode(rstContacts("loc")) & "&"
Response.write "indirizzo=" & Server.URLEncode(rstContacts("indirizzo")) & "&"
Response.write "telefono=" & Server.URLEncode(rstContacts("telefono")) & "&"
'Response.write "responsabile=" & Server.URLEncode(rstContacts("responsabile")) & "&"
Response.write "responsabile=" & tipo & "&"
Response.write "email=" & Server.URLEncode(rstContacts("email")) & "&"
Response.write "done=" & "yes" & "&"
rstContacts.Close
DataConn.Close
%>


Rispondi quotando