<% bFirtst=true
Do while not rs.eof then
if not rs.eof then
response.write("{value:"&rs(idgen")&",text:&rs("ge neri")&"}")
if bfirst=true then
bFirst=false
else
response.write(",")
end if
else
response.write("nessun record")
end if
rs.movenext
loop
%>