Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/12/2004, 13:44
cparra
 
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
%>