Originariamente inviato da AleX ZeTa
metti un

codice:
<%
End Select
%>
alla fine. Potrebbero esserc altri errori, non ho controllato.

Grazie, adesso è ok... ma perchè questa query non mi restituisce nessun dato? mi lascia la listbox vuota... :master:
codice:
<SELECT name="ID"> 
<% 
sqlquery = "select " 
sqlquery = sqlquery & "ID, " 
sqlquery = sqlquery & "Denominazione, " 
sqlquery = sqlquery & "Informazioni " 
sqlquery = sqlquery & "from " 
sqlquery = sqlquery & "[Catalogo_Linee]" 
Set RecordsetLinee = DatabaseWebStore.Execute(sqlquery) 
if err=0 then 
While Not RecordsetLinee.EOF 
ID = RecordsetLinee("ID") 
if cInt(ID) = cInt(IDLinea) then 
response.write "<OPTION SELECTED VALUE=" & ID & ">" 
else 
response.write "<OPTION VALUE=" & ID & ">" 
end if 
response.write RecordsetLinee("denominazione") & "</OPTION>" 
RecordsetLinee.movenext 
Wend 
end if 
RecordsetLinee.close 
set RecorsetLinee = nothing 
%> 
</SELECT>