Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    "input Select" con ciclo

    codice:
    <%   Do while not RsART.EOF%>
    	  
    	  <tr>
           <td>
            <select name="SEZ_ID" onChange="location.href='?form=<%=strform%>&metodo=<%=strMETODO%>&id_sez='+this.options[this.selectedIndex].value+'&step=1';">
             <option selected>------------</option>
    <%   
    	 Do while not RsSEZ.EOF
            If int(ID_SEZ) = RsSEZ("ID_SEZ") then %>
             <option value="<%=RsSEZ("ID_SEZ")%>" selected><%=RsSEZ("SEZ_TITOLO")%></option>
    <%      Else %>
             <option value="<%=RsSEZ("ID_SEZ")%>"><%=RsSEZ("SEZ_TITOLO")%></option>
    <%      End If 
         RsSEZ.MoveNext
         Loop
    	 %>
            </select>
           </td>
           <td>
            <input type="text" name="ART_TITOLO" value="<%=RsART("ART_TITOLO")%>">
    	   </td>
          </tr>	  
    <%  RsArt.MoveNext
        Loop
    come mai vi visualizza i record nella Select solo sulla prima riga del ciclo Rs.SEZ.EOF???
    Come spiegarmi meglio se non con una bell'immagine? :P

    scommetto che devo mettere un ciclo For..ma come?
    Immagini allegate Immagini allegate

  2. #2
    secondo me, alla fine del ciclo RsSEZ, dovresti rimandare l'indice al primo elemento, altrimenti è già EOF.
    prova e fammi sapere.

    Ciauz!
    <head> Nothing! </head>
    <body> Open your mind and close your ass !!! </body>

  3. #3
    Grazie mille ...non ci avevo proprio pensato..

  4. #4
    <head> Nothing! </head>
    <body> Open your mind and close your ass !!! </body>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.