Option Boton como acomodarlos

07/04/2005 - 00:11 por Miguel | Informe spam
Compañeros tengo un detalle...
En pagina asp quiero desplegar una lista donde se
despliega algunos option donde el usuario puede optar y
el valor a tener, pero horizontal no debe de aceptarme
dos respuestas pero vertical si, entonces no se como
hacerla para que me acepte , como debe de ser para
hacerlo mando el codigo

<table align="left" widht="100%" width="436">
<tr>
<th bgcolor="#DDF0FE" width="13%"><font
size=3>Country</th>
<th bgcolor="#DDF0FE" width="13%"><font
size=3>PerUnit</th>
<th bgcolor="#DDF0FE" width="20%"><font size=3>Import
Price</th>
<th bgcolor="#DDF0FE" width="67"><font size=3>Kg</th>
<th bgcolor="#DDF0FE" width="16%"><font
size=3>Shipment</th>
<th bgcolor="#DDF0FE" width="17%"><font
size=3>Value</th>
</tr>
<!-- #include file="..\general\conexion.asp" -->
<%
sql = "SELECT * FROM dtarules"
set tbl= db.execute(sql)
While NOT tbl.EOF%>
<tr>
<Td size=2 ><%response.write(tbl("country"))%

</Td>


<Td size=2 ><p><input type="radio" name="R2" <%
if tbl("perunit")= "True" then response.write "Checked"%>

</p></Td>


<Td size=2 ><p><input type="radio" name="R2" <%
if tbl("perunit")= "True" then response.write "Checked"%


</p></Td>




<Td size=2 ><p><input type="radio" name="R3" <%
if tbl("perunit")= "True" then response.write "Checked"%


</p></Td>




<Td size=2 ><p><input type="radio" name="R4" <%
if tbl("perunit")= "True" then response.write "Checked"%


</p></Td>




<Td size=2 ><p><input type="text" name="value"
align="right" size="8" value=<%response.write(tbl
("value"))%> style="text-align: right"></p></Td>
</tr>

<%tbl.MoveNext
Wend %>
</form>
gracias

saludos
miguel

Preguntas similare

Leer las respuestas

#1 Kevin Guisbert S.
07/04/2005 - 19:11 | Informe spam
Hola bueno un option tiene una propiedad name, cuando colocas el name de ej,
4 option estos seran un grupo y entre estos solo uno puede ser seleccionado,
ahora aso puedes crear varios grupos, peor hacer aceptar en un grupo mas de
una respuesta no se puede, para reemplazar esto exiten los checkBox, ahi si
puedes tener mas de una opcion seleccionada, y si quieres usar siempre
option, entonces deberias crear grupos con nombres similares para luego
relacionar cuales se selecciono, pero sera muy confuso lo mas conveniente es
checkbox

Salu2

"Miguel" wrote:

Compañeros tengo un detalle...
En pagina asp quiero desplegar una lista donde se
despliega algunos option donde el usuario puede optar y
el valor a tener, pero horizontal no debe de aceptarme
dos respuestas pero vertical si, entonces no se como
hacerla para que me acepte , como debe de ser para
hacerlo mando el codigo

<table align="left" widht="100%" width="436">
<tr>
<th bgcolor="#DDF0FE" width="13%"><font
size=3>Country</th>
<th bgcolor="#DDF0FE" width="13%"><font
size=3>PerUnit</th>
<th bgcolor="#DDF0FE" width="20%"><font size=3>Import
Price</th>
<th bgcolor="#DDF0FE" width="67"><font size=3>Kg</th>
<th bgcolor="#DDF0FE" width="16%"><font
size=3>Shipment</th>
<th bgcolor="#DDF0FE" width="17%"><font
size=3>Value</th>
</tr>
<!-- #include file="..\general\conexion.asp" -->
<%
sql = "SELECT * FROM dtarules"
set tbl= db.execute(sql)
While NOT tbl.EOF%>
<tr>
<Td size=2 ><%response.write(tbl("country"))%
></Td>
<Td size=2 ><p><input type="radio" name="R2" <%
if tbl("perunit")= "True" then response.write "Checked"%>
></p></Td>
<Td size=2 ><p><input type="radio" name="R2" <%
if tbl("perunit")= "True" then response.write "Checked"%
>></p></Td>
<Td size=2 ><p><input type="radio" name="R3" <%
if tbl("perunit")= "True" then response.write "Checked"%
>></p></Td>
<Td size=2 ><p><input type="radio" name="R4" <%
if tbl("perunit")= "True" then response.write "Checked"%
>></p></Td>
<Td size=2 ><p><input type="text" name="value"
align="right" size="8" value=<%response.write(tbl
("value"))%> style="text-align: right"></p></Td>
</tr>

<%tbl.MoveNext
Wend %>
</form>
gracias

saludos
miguel

email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida