Foros del Web » Programando para Internet » ASP Clásico »

desabilta Checkbox dependiendo de...

Estas en el tema de desabilta Checkbox dependiendo de... en el foro de ASP Clásico en Foros del Web. Bueno un saludo a todos antes ke nada. Ahora entremos en materia tengo el siguiente problema ke esperon me puedan ayudar el siguiente codigo donde ...
  #1 (permalink)  
Antiguo 06/12/2004, 13:44
 
Fecha de Ingreso: diciembre-2002
Mensajes: 41
Antigüedad: 22 años, 5 meses
Puntos: 0
Pregunta desabilta Checkbox dependiendo de...

Bueno un saludo a todos antes ke nada.

Ahora entremos en materia tengo el siguiente problema ke esperon me puedan ayudar el siguiente codigo donde hay un repeat el cual genera un checkbox por cada campo ke trae he ahy el problem necesito saber como puedo dejar el checkbox Disable cuando el valor del campo por
ejemplo

list.Fields.Item("Pg_final").Value = 0

ke el checkbox kede inabilitado y cuando sea distinto de cero kede habilitado para marcarlo

espero haberme explicado bien de ante mano muchas gracias a todos

<%
While ((Repeat1__numRows <> 0) AND (NOT list.EOF))
%>
<%pago_horig= (list.Fields.Item("Pg_horiginal").Value) + (list.Fields.Item("Pg_descuento").Value)%>
<tr class=normal10 onMouseOver="mOvr(this,'#E9E9E9');"
onMouseOut="mOut(this,'');">
<td width="3%" height="16">
'este es el checkbox <input type="checkbox" name="IdPedido" value="<%=(list.Fields.Item("Pg_autonum").Value)%> ">
</td>
<td width="32%" height="16"><%=(list.Fields("Pg_empresa").Value)%> </td>
<td width="10%" height="16"><%=(list.Fields("Pg_fechapago").Value) %></td>
<td width="8%" height="16"><font color="#000000"><%=formatnumber(pago_horig,0)%></font></td>
<td width="7%" height="16"><%=(list.Fields("Pg_descuentox").Value )%></td>
<td width="9%" height="16"><%=formatnumber(list.Fields("Pg_descue nto").Value,0)%> </td>
<td width="10%" height="16">
<%=formatnumber(list.Fields("Pg_horiginal").Value, 0)%></td>
<td width="9%" height="16">
<%=formatnumber(list.Fields("Pg_abono").Value,0)%> </td>
<td width="12%" height="16">
<%=formatnumber(list.Fields("Pg_final").Value,0)%> </td>
</tr>
<% contador=contador + 1 %>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
list.MoveNext()
Wend
%>
  #2 (permalink)  
Antiguo 06/12/2004, 13:49
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
'este es el checkbox <input type="checkbox" name="IdPedido" value="<%=(list.Fields.Item("Pg_autonum").Value)%> "<% If list.Fields.Item("Pg_final").Value = 0 Then Response.Write " disabled" %>>
__________________
...___...
  #3 (permalink)  
Antiguo 06/12/2004, 13:51
Avatar de skatomundo  
Fecha de Ingreso: junio-2002
Ubicación: Santiago - CL
Mensajes: 2.532
Antigüedad: 22 años, 10 meses
Puntos: 125
Inhabilitarlo:

<input type="checkbox" name="IdPedido" value="<%=(list.Fields.Item"Pg_autonum").Value)%>" <% if valor = 0 then %> disabled<%end if %>>
  #4 (permalink)  
Antiguo 06/12/2004, 14:47
 
Fecha de Ingreso: diciembre-2002
Mensajes: 41
Antigüedad: 22 años, 5 meses
Puntos: 0
gracias por responder tan rapido a mi consulta la voy a probar de inmediato y les comento como me fue gracias
  #5 (permalink)  
Antiguo 06/12/2004, 14:54
 
Fecha de Ingreso: diciembre-2002
Mensajes: 41
Antigüedad: 22 años, 5 meses
Puntos: 0
funciona perfecto.....
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:15.