Bonjour à tous,
J'ai actuellement un probleme avec une page asp dans laquelle je n'arrive pas à afficher les éléments pendant le chargement. J'utilise Response.flush - je ne suis pas dans un tableau mais dans le parcours d'un recordset...
J'ai parcouru le forum et notamment ces sujets (http://www.developpez.net/forums/sho...response.flush)
mais cela ne solutionne pas mon problème.
J'ai activé le parametre Response.buffer = true.
Je copie ci-dessous le code de la fonction qui appelle le response.flush...
Merci d'avance à tous ceux qui pourraient m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 rsDistanceGV.movefirst do until rsDistanceGV.EOF If IsVehiculeOrderByImmat() Then returnLabel = rsDistanceGV("REF_VEHICULES_VC_IMMATACTIVE") & " - " & rsDistanceGV("REF_VEHICULES_VC_CODEPARC") Else returnLabel = rsDistanceGV("REF_VEHICULES_VC_CODEPARC") & " - " & rsDistanceGV("REF_VEHICULES_VC_IMMATACTIVE") End If %> <br> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="titreTablo"><img src="<%=way_img%>transp.gif" width="5" height="1" border="0"><b> <%=getTrad_Trac( sLg , 32 , sError )%> :</b> <img src="<%=way_img%>info.gif" width="11" height="12"> <%=returnLabel%></td> </tr> </table> <% distancevehicule = rsDistanceGV("DISTANCE")/10 StartXmlRow sRptCurrentTableName AddXmlField "VEHICULE", returnLabel AddXmlField "DISTANCEPARCOURUE", distancevehicule nbvehicule = nbvehicule + 1 totalDistance = totalDistance + distancevehicule EndXmlRow sRptCurrentTableName Response.flush() rsDistanceGV.movenext loop
Partager