Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/04/2009, 09:04
Avatar de TonyChile
TonyChile
 
Fecha de Ingreso: marzo-2009
Ubicación: Maipú, Santiago
Mensajes: 422
Antigüedad: 16 años, 1 mes
Puntos: 7
Respuesta: Tablas Dinamicas ASP y sql server 2000

Ahora lo he intentado de la siguiente forma sin obtener aun resultados.

Código asp:
Ver original
  1. <table name="tabla" width="352" class="fondo_table3">
  2. <tr><td colspan=6 class="titulo"></td></tr>
  3.     <tr><td colspan="6" height=4></td></tr>
  4.    
  5.   <tr>
  6.             <td class="text_black_bold_12" width="30%" nowrap>&nbsp;<strong>Tel&eacute;fono</strong>&nbsp;</td>
  7.             <td colspan="3">
  8.             <%
  9.            
  10.             SQL3 = "SELECT distinct EQUIPO"
  11.             SQL3 = SQL3 & " FROM CELULAR "
  12.             Set reg4 = conecta.Execute(SQL3)                   
  13.             %>
  14.                        
  15.               <select name="CCequipo" id="EQUIPO" class="combo" OnChange="ComponerLista (document.forms.CC.CCequipo.value);">
  16.               <option value="0" selected>Seleccionar</option>
  17.               <%
  18.               if Not reg4.Eof then
  19.                     noRecord = 1
  20.                     While (not reg4.EOF)
  21.                       %>
  22.                       <option value="<%=(reg4.Fields.Item("EQUIPO").Value)%>"><%=(reg4.Fields.Item("EQUIPO").Value)%></option>
  23.                       <%
  24.                     reg4.Movenext
  25.                     wend
  26.               else
  27.                     noRecord = 0   
  28.                      %>    
  29.               <%end if
  30.                 reg4.Close
  31.               %>                
  32.               </select>      
  33.           </td>          
  34.   </tr>
  35.  
  36.   <tr>
  37.       <td width="30%">
  38.         <strong>Modelo:</strong></td>
  39.        
  40.     <td width="71%">           
  41.             <Select Name="CCmodelo" style="display:none">              
  42.             </Select>  
  43.             <INPUT
  44.             TYPE="TEXT"
  45.             NAME="modelo"
  46.             SIZE="1"
  47.             maxlength="10"
  48.             value="ninguno"
  49.             style="display:none"
  50.             >          
  51.     </td>
  52.     </tr>
  53.  
  54.   <tr>
  55.         <td width="30%">
  56.           <strong>N&uacute;mero De Serie:</strong></td>
  57.        
  58.         <td width="71%">           
  59.             <Select Name="CCserie" style="display:none">               
  60.             </Select>  
  61.             <INPUT
  62.             TYPE="TEXT"
  63.             NAME="serie"
  64.             SIZE="1"
  65.             maxlength="15"
  66.             value="ninguno"
  67.             style="display:none"
  68.             >      
  69.     </td>
  70.   </tr>
  71.   <tr><td colspan="6" width="100%">&nbsp;</td></tr>
  72.     <tr>
  73.         <td colspan="6" align="center"><input type="button" name="CCbuscar" value="Buscar" class="botton80x23" onClick="sql3">&nbsp;&nbsp;&nbsp;
  74.             <input type="button" name="CClimpiar" value="Limpiar" class="botton80x23" onClick="BorrarLista()"> 
  75.         </td>
  76.     </tr>
  77.     <tr><td colspan="6">&nbsp;</td></tr>
  78.  
  79. </table>

La idea es que se muestre la primera combobox y al seleccionar una de opcion de esta se despliege la 2 combobox en consecuencia de las opcion antes seleccionada y asi sucesivamente.

Espero que me puedan ayudar